Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrFactNotFound = errors.New("trivia not found") ErrFactAlreadyExists = errors.New("trivia already exists") )
Functions ¶
This section is empty.
Types ¶
type FactRepository ¶
type FactRepository interface { Insert(context.Context, *Fact) error FindAll(context.Context) ([]Fact, error) FindByID(context.Context, int64) (*Fact, error) Update(context.Context, *Fact) error DeleteByID(context.Context, int64) error }
FactRepository is the interface used to persists the Fact(s)
Click to show internal directories.
Click to hide internal directories.