Documentation ¶
Index ¶
- Variables
- type Database
- func (db *Database) Close() error
- func (db *Database) GetLastContent(ctx context.Context, name, url string) (int64, []byte, error)
- func (db *Database) InsertLastContent(ctx context.Context, name, url string, content []byte) (int64, error)
- func (db *Database) PrepareDatabase(ctx context.Context, c config.Configuration) ([]config.WatchConfig, int64, error)
- func (db *Database) UpdateLastContent(ctx context.Context, id int64, content []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("url not found in database")
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func (*Database) GetLastContent ¶
func (*Database) InsertLastContent ¶
func (*Database) PrepareDatabase ¶
func (db *Database) PrepareDatabase(ctx context.Context, c config.Configuration) ([]config.WatchConfig, int64, error)
PrepareDatabase cleans up old entries and returns new ones
Click to show internal directories.
Click to hide internal directories.