Documentation
¶
Index ¶
- func AnswerGpsHandlerBuilder(s storage.Storage) func(c echo.Context) error
- func AnswerHandlerBuilder(s storage.Storage) func(c echo.Context) error
- func DownloadHandlerBuilder(s storage.Storage) func(e echo.Context) error
- func IslandsHandler(s storage.Storage) func(c echo.Context) error
- func LineWebhookHandlerBuilder(surv *survey.Survey, s storage.Storage, bot *linebot.Client, ...) func(c echo.Context) error
- func NoCacheMW(next echo.HandlerFunc) echo.HandlerFunc
- func PriceHandler(s storage.Storage) func(c echo.Context) error
- func SendLineMsgHandlerBuilder(s storage.Storage, lineBot *linebot.Client) func(c echo.Context) error
- func WipeUserHandlerBuilder(s storage.Storage, lineBot *linebot.Client) func(c echo.Context) error
- type AnswerGpsItem
- type AnswerItem
- type AnswersGpsRequest
- type AnswersRequest
- type Api
- type ApiConf
- type MsgVars
- type SendLineMsgRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnswerGpsHandlerBuilder ¶
func DownloadHandlerBuilder ¶ added in v0.0.5
func IslandsHandler ¶ added in v0.0.11
func NoCacheMW ¶ added in v0.0.3
func NoCacheMW(next echo.HandlerFunc) echo.HandlerFunc
cache-busting middleware
func PriceHandler ¶ added in v0.0.11
Types ¶
type AnswerGpsItem ¶
type AnswerItem ¶
type AnswersGpsRequest ¶
type AnswersGpsRequest struct { UserId string `json:"user_id"` Location AnswerGpsItem `json:"location"` }
type AnswersRequest ¶
type AnswersRequest struct { UserId string `json:"user_id"` Answers []AnswerItem `json:"answers"` }
type Api ¶
type Api struct { Storage storage.Storage LineBot *linebot.Client Surv *survey.Survey Conf *ApiConf }
type ApiConf ¶
type ApiConf struct { Port int // hostname where the API is hosted GlobalVars *domain.GlobalTplVars }
type SendLineMsgRequest ¶
Click to show internal directories.
Click to hide internal directories.