Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("fact not found")
)
Functions ¶
This section is empty.
Types ¶
type FactsHandler ¶
type FactsHandler struct {
// contains filtered or unexported fields
}
func NewFactsHandler ¶
func NewFactsHandler(factsRepository repository.FactsRepository) *FactsHandler
func (*FactsHandler) GetFactsCount ¶
func (f *FactsHandler) GetFactsCount() (int, error)
func (*FactsHandler) GetRandomApproved ¶
func (f *FactsHandler) GetRandomApproved() (*Fact, error)
Click to show internal directories.
Click to hide internal directories.