Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrQuoteNotFound = echo.NewHTTPError(http.StatusNotFound, "quote not found")
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database interface { GetQuotes(pagination Pagination) ([]QuoteEntity, error) CountQuotes(text string) (int64, error) AddQuote(quote QuoteEntity) (QuoteEntity, error) SetQuotes(quotes []QuoteEntity) ([]QuoteEntity, error) RandomQuote() (QuoteEntity, error) }
func GetDatabase ¶ added in v1.2.0
func NewFileDatabase ¶ added in v1.2.0
func NewMongoDatabase ¶
type Pagination ¶
Click to show internal directories.
Click to hide internal directories.