Documentation
¶
Index ¶
- type API
- func (api *API) CreateResource(c echo.Context) error
- func (api *API) CreateUser(c echo.Context) error
- func (api *API) CreateVote(c echo.Context) error
- func (api *API) GetCategories(c echo.Context) error
- func (api *API) GetResources(c echo.Context) error
- func (api *API) GetResourcesByTopic(c echo.Context) error
- func (api *API) GetTopics(c echo.Context) error
- func (api *API) GetTopicsByCategory(c echo.Context) error
- func (api *API) LoginUser(c echo.Context) error
- func (api *API) RegisterCategories()
- func (api *API) RegisterResources()
- func (api *API) RegisterRoutes()
- func (api *API) RegisterTopics()
- func (api *API) RegisterUsers()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
API is our api model
func (*API) CreateResource ¶
CreateResource creates a new resource in the db
func (*API) CreateUser ¶
CreateUser creates a new User in the db
func (*API) CreateVote ¶
CreateVote creates a new vote in the db
func (*API) GetCategories ¶
GetCategories gets all categories from the database
func (*API) GetResources ¶
GetResources gets all resources
func (*API) GetResourcesByTopic ¶
GetResourcesByTopic gets all resources by topic id
func (*API) GetTopicsByCategory ¶
GetTopicsByCategory gets all topics by category id
func (*API) RegisterCategories ¶
func (api *API) RegisterCategories()
RegisterCategories registers categories routes with api
func (*API) RegisterResources ¶
func (api *API) RegisterResources()
RegisterResources registers resources routes with api
func (*API) RegisterRoutes ¶
func (api *API) RegisterRoutes()
RegisterRoutes registers api routes with echo server
func (*API) RegisterTopics ¶
func (api *API) RegisterTopics()
RegisterTopics registers topics routes with api
func (*API) RegisterUsers ¶
func (api *API) RegisterUsers()
RegisterUsers registers Users routes with api
Click to show internal directories.
Click to hide internal directories.