Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoResults = errors.New("no results")
ErrNoResults is returned when there are no results for the given query.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database interface { // Create persists the entry to the underlying database, returning // any errors if present. Create(ctx context.Context, e Entry) error // Remove removes the named entry. Remove(ctx context.Context, slug string) error // Lookup looks up the named entry. Lookup(ctx context.Context, slug string) (Entry, error) // Ping pings the database. Ping(ctx context.Context) error // Close closes the database. Close(ctx context.Context) error }
A Database stores and manages data.
Click to show internal directories.
Click to hide internal directories.