Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Extractor ¶
type Extractor interface {
GetName() string
GetDBPath() string
SetDBPath(string)
GetAllUrlsSince(ctx context.Context, conn *sql.DB, since time.Time) ([]UrlRow, error)
GetAllVisitsSince(ctx context.Context, conn *sql.DB, since time.Time) ([]VisitRow, error)
// Verify that the passed db can actually be connected to. In the case of
// sqlite, it's not uncommon for a db to be locked. The Open call will work
// but the db cannot be read.
VerifyConnection(ctx context.Context, conn *sql.DB) (bool, error)
}
type UrlDbEntity ¶
type UrlDbEntity struct {
UrlMd5 string
Url string
Title *string // Nullable
Description *string // Nullable
LastVisit *time.Time // Nullable
}
The URL as represented in the db.
type UrlMetaRow ¶
Meta information about the URL
Click to show internal directories.
Click to hide internal directories.