Documentation ¶
Index ¶
- type Categories
- type Category
- type CategoryCountDTO
- type Manager
- func (m *Manager) Get(w http.ResponseWriter, r *http.Request)
- func (m *Manager) GetByFeatured(w http.ResponseWriter, _ *http.Request)
- func (m *Manager) GetByID(w http.ResponseWriter, r *http.Request)
- func (m *Manager) GetCategoryCounts(w http.ResponseWriter, _ *http.Request)
- func (m *Manager) GetSubCategoriesByID(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Categories ¶
type Categories struct {
Categories []*Category `json:"categories"`
}
type Category ¶
type Category struct { Name string `json:"name"` Id int `json:"id"` TopLevel bool `json:"top_level"` Featured bool `json:"featured"` }
func FromDBType ¶
func FromDBTypeArray ¶
type CategoryCountDTO ¶
type Manager ¶
func (*Manager) Get ¶
func (m *Manager) Get(w http.ResponseWriter, r *http.Request)
Get lists all existing categories
@Summary Get Categories @Description get all categories @Tags categories @Accept json @Produce json @Success 200 {array} categories.Categories @Router /categories [get]
func (*Manager) GetByFeatured ¶
func (m *Manager) GetByFeatured(w http.ResponseWriter, _ *http.Request)
func (*Manager) GetCategoryCounts ¶
func (m *Manager) GetCategoryCounts(w http.ResponseWriter, _ *http.Request)
func (*Manager) GetSubCategoriesByID ¶
func (m *Manager) GetSubCategoriesByID(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.