Documentation
¶
Index ¶
- type Handler
- func (h *Handler) Config(c echo.Context) error
- func (h *Handler) CreateGoal(c echo.Context) error
- func (h *Handler) CreateProgress(c echo.Context) error
- func (h *Handler) CreateSystem(c echo.Context) error
- func (h *Handler) DeleteGoal(c echo.Context) error
- func (h *Handler) DeleteProgress(c echo.Context) error
- func (h *Handler) DeleteSystem(c echo.Context) error
- func (h *Handler) GetGoal(c echo.Context) error
- func (h *Handler) GetGoals(c echo.Context) error
- func (h *Handler) GetProgress(c echo.Context) error
- func (h *Handler) GetProgresses(c echo.Context) error
- func (h *Handler) GetSystem(c echo.Context) error
- func (h *Handler) GetSystems(c echo.Context) error
- func (h *Handler) Health(c echo.Context) error
- func (h *Handler) UpdateGoal(c echo.Context) error
- func (h *Handler) UpdateProgress(c echo.Context) error
- func (h *Handler) UpdateSystem(c echo.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler holds the configurations and database connection so that all handlers can have access to them in 1 place.
func NewHandler ¶
NewHandler returns a new Handler.
func (*Handler) CreateGoal ¶
CreateGoal creates a goal in the system.
func (*Handler) CreateProgress ¶
CreateProgress create a progress in the system.
func (*Handler) CreateSystem ¶
CreateSystem create a system in the system.
func (*Handler) DeleteGoal ¶
DeleteGoal deletes a specified goal in the system.
func (*Handler) DeleteProgress ¶
DeleteProgress deletes a specified progress in the system.
func (*Handler) DeleteSystem ¶
DeleteSystem deletes a specified system in the system.
func (*Handler) GetProgress ¶
GetProgress gets a specified progress in the system.
func (*Handler) GetProgresses ¶
GetProgresses gets all progress in the system.
func (*Handler) GetSystems ¶
GetSystems gets all systems in the system.
func (*Handler) UpdateGoal ¶
UpdateGoal updates a specified goal in the system.
func (*Handler) UpdateProgress ¶
UpdateProgress updates a specified progress in the system.
func (*Handler) UpdateSystem ¶
UpdateSystem updates a specified system in the system.