Documentation ¶
Index ¶
- Variables
- type Fact
- type FactsHandler
- func (f *FactsHandler) Approve(factID primitive.ObjectID) error
- func (f *FactsHandler) Create(fact *Fact) error
- func (f *FactsHandler) Delete(id primitive.ObjectID) error
- func (f *FactsHandler) GetAll() ([]*repository.Fact, error)
- func (f *FactsHandler) Unapprove(factID primitive.ObjectID) error
- func (f *FactsHandler) Update(fact *Fact) error
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) Create ¶
func (f *FactsHandler) Create(fact *Fact) error
func (*FactsHandler) GetAll ¶
func (f *FactsHandler) GetAll() ([]*repository.Fact, error)
func (*FactsHandler) Update ¶
func (f *FactsHandler) Update(fact *Fact) error
Click to show internal directories.
Click to hide internal directories.