Documentation ¶
Index ¶
- type API
- func (api *API) CreateChallenge(c echo.Context) error
- func (api *API) CreateHunt(c echo.Context) error
- func (api *API) DeleteChallenge(c echo.Context) error
- func (api *API) DeleteHunt(c echo.Context) error
- func (api *API) GetHunt(c echo.Context) error
- func (api *API) GetHuntAdmin(c echo.Context) error
- func (api *API) GetHunts(c echo.Context) error
- func (api *API) HuntImport(c echo.Context) error
- func (api *API) InitializeRoutes(apiRouter *echo.Group)
- func (api *API) SubmitAnswer(c echo.Context) error
- func (api *API) UpdateChallenge(c echo.Context) error
- func (api *API) UpdateHunt(c echo.Context) error
- type Answer
- type Challenge
- type ChallengeBody
- type ChallengePayload
- type Hunt
- type HuntAdmin
- type Hunts
- type Import
- type Location
- type Middleware
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
func (*API) CreateChallenge ¶
func (*API) CreateHunt ¶
func (*API) DeleteChallenge ¶
func (*API) DeleteHunt ¶
func (*API) GetHuntAdmin ¶
func (*API) HuntImport ¶
func (*API) InitializeRoutes ¶
func (api *API) InitializeRoutes(apiRouter *echo.Group)
func (*API) SubmitAnswer ¶
func (*API) UpdateChallenge ¶
func (*API) UpdateHunt ¶
type ChallengeBody ¶
type ChallengePayload ¶
type Hunt ¶
type Hunt struct { Name string `json:"name"` Location Location `json:"location"` Challenges []ChallengeBody `json:"challenges"` HuntId int `json:"hunt_id"` }
type HuntAdmin ¶
type HuntAdmin struct { Name string `json:"name"` Location Location `json:"location"` Challenges []ChallengePayload `json:"challenges"` HuntId int `json:"hunt_id"` }
type Middleware ¶
type Middleware func(http.HandlerFunc) http.HandlerFunc
Click to show internal directories.
Click to hide internal directories.