crawler.go 339 Bytes
Newer Older
Jürgen Enge's avatar
Jürgen Enge committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
package memocrawler

import (
	"context"
	"database/sql"
)

type Crawler struct {
	db *sql.DB

}

func NewCrawler(db *sql.DB ) *Crawler {
	cr := &Crawler{db:db}
	return cr
}

func (cr *Crawler) Runner() error {
	return cr.crawl()
}

func (cr *Crawler) crawl() error {

	return nil
}

func (cr *Crawler) Shutdown( ctx context.Context ) {

}