Documentation ¶
Index ¶
- func AnswerGpsHandlerBuilder(s *storage.Sql) func(c echo.Context) error
- func AnswerHandlerBuilder(s *storage.Sql, bot *linebot.Client) func(c echo.Context) error
- func IslandsHandler(s *storage.Sql) func(c echo.Context) error
- func LineEventsDownloadHandlerBuilder(s *storage.Sql) func(e echo.Context) error
- func LineImgHandler() func(c echo.Context) error
- func LineWebhookHandlerBuilder(surv *survey.Survey, s *storage.Sql, bot *linebot.Client, ...) func(c echo.Context) error
- func LocationPricesHandlerBuilder(s *storage.Sql) func(e echo.Context) error
- func NoCacheMW(next echo.HandlerFunc) echo.HandlerFunc
- func SendLineCustomQuestionHandlerBuilder(s *storage.Sql, lineBot *linebot.Client) func(c echo.Context) error
- func SendLineMsgHandlerBuilder(s *storage.Sql, lineBot *linebot.Client) func(c echo.Context) error
- func WipeUserHandlerBuilder(s *storage.Sql, lineBot *linebot.Client) func(c echo.Context) error
- type AnswerGpsItem
- type AnswerItem
- type AnswersGpsRequest
- type AnswersRequest
- type Api
- type ApiConf
- type LoginPayload
- type MsgVars
- type SendLineCustomQuestionRequest
- type SendLineMsgRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnswerGpsHandlerBuilder ¶
func AnswerHandlerBuilder ¶
func IslandsHandler ¶ added in v0.0.11
func LineEventsDownloadHandlerBuilder ¶ added in v0.0.20
func LineImgHandler ¶ added in v0.0.14
func LocationPricesHandlerBuilder ¶ added in v0.0.28
func NoCacheMW ¶ added in v0.0.3
func NoCacheMW(next echo.HandlerFunc) echo.HandlerFunc
cache-busting middleware
func SendLineCustomQuestionHandlerBuilder ¶ added in v0.0.20
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 ApiConf ¶
type ApiConf struct { Port int // hostname where the API is hosted GlobalVars *domain.GlobalTplVars }
type LoginPayload ¶ added in v0.0.34
type SendLineCustomQuestionRequest ¶ added in v0.0.20
type SendLineMsgRequest ¶
Click to show internal directories.
Click to hide internal directories.