Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterHandlers ¶
func RegisterHandlers(ge *gin.Engine, r FocusCatalogItemRepository)
Types ¶
type FocusCatalogItemHandler ¶
type FocusCatalogItemHandler struct {
// contains filtered or unexported fields
}
type FocusCatalogItemRepository ¶
type FocusCatalogItemRepository interface { FindAll() []entity.FocusCatalogItem FindByName(name string) (entity.FocusCatalogItem, error) Insert(catalog entity.FocusCatalogItem) error Update(name string, catalog entity.FocusCatalogItem) error Delete(name string) error }
func NewFocusCatalogItemRepository ¶
func NewFocusCatalogItemRepository(db *mongo.Database) FocusCatalogItemRepository
Click to show internal directories.
Click to hide internal directories.