Documentation ¶
Index ¶
- func DecodeRequestBody(r *http.Request, model interface{}) error
- func RespondWithError(w http.ResponseWriter, code int, message string)
- func RespondWithJSON(w http.ResponseWriter, code int, payload interface{})
- func ValidateContentType(next http.Handler) http.Handler
- type AccountID
- type CustomClaims
- type HandlerEnv
- func (he *HandlerEnv) CreateAllSettingsHandler(w http.ResponseWriter, r *http.Request)
- func (he *HandlerEnv) CreateCORSHandler() *cors.Cors
- func (he *HandlerEnv) CreateEventHandler(w http.ResponseWriter, r *http.Request)
- func (he *HandlerEnv) CreateTaskHandler(w http.ResponseWriter, r *http.Request)
- func (he *HandlerEnv) DeleteEventHandler(w http.ResponseWriter, r *http.Request)
- func (he *HandlerEnv) DeleteTaskHandler(w http.ResponseWriter, r *http.Request)
- func (he *HandlerEnv) GetEventHandler(w http.ResponseWriter, r *http.Request)
- func (he *HandlerEnv) GetEventsByTaskIdHandler(w http.ResponseWriter, r *http.Request)
- func (he *HandlerEnv) GetEventsHandler(w http.ResponseWriter, r *http.Request)
- func (he *HandlerEnv) GetEventsInIntervalHandler(w http.ResponseWriter, r *http.Request)
- func (he *HandlerEnv) GetSettingValueHandler(w http.ResponseWriter, r *http.Request)
- func (he *HandlerEnv) GetSettingsHandler(w http.ResponseWriter, r *http.Request)
- func (he *HandlerEnv) GetTaskHandler(w http.ResponseWriter, r *http.Request)
- func (he *HandlerEnv) GetTasksHandler(w http.ResponseWriter, r *http.Request)
- func (he *HandlerEnv) IndexHandler(w http.ResponseWriter, r *http.Request)
- func (he *HandlerEnv) LoginHandler(w http.ResponseWriter, r *http.Request)
- func (he *HandlerEnv) LogoutHandler(w http.ResponseWriter, r *http.Request)
- func (he *HandlerEnv) RegisterHandler(w http.ResponseWriter, r *http.Request)
- func (he *HandlerEnv) SetCookie(w http.ResponseWriter, name, value string)
- func (he *HandlerEnv) SetHttpOnlyCookie(w http.ResponseWriter, name, value string)
- func (he *HandlerEnv) UpdateEventHandler(w http.ResponseWriter, r *http.Request)
- func (he *HandlerEnv) UpdateSettingValueHandler(w http.ResponseWriter, r *http.Request)
- func (he *HandlerEnv) UpdateTaskHandler(w http.ResponseWriter, r *http.Request)
- func (he *HandlerEnv) ValidateHandler(w http.ResponseWriter, r *http.Request)
- func (he *HandlerEnv) VerifyTokenMiddleware(next http.Handler) http.Handler
- type Token
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeRequestBody ¶
func RespondWithError ¶
func RespondWithError(w http.ResponseWriter, code int, message string)
func RespondWithJSON ¶
func RespondWithJSON(w http.ResponseWriter, code int, payload interface{})
Types ¶
type CustomClaims ¶
type CustomClaims struct { AccountID int `json:"account_id"` CSRFToken string `json:"csrf_token"` jwt.StandardClaims }
type HandlerEnv ¶
func (*HandlerEnv) CreateAllSettingsHandler ¶
func (he *HandlerEnv) CreateAllSettingsHandler(w http.ResponseWriter, r *http.Request)
func (*HandlerEnv) CreateCORSHandler ¶
func (he *HandlerEnv) CreateCORSHandler() *cors.Cors
func (*HandlerEnv) CreateEventHandler ¶
func (he *HandlerEnv) CreateEventHandler(w http.ResponseWriter, r *http.Request)
func (*HandlerEnv) CreateTaskHandler ¶
func (he *HandlerEnv) CreateTaskHandler(w http.ResponseWriter, r *http.Request)
func (*HandlerEnv) DeleteEventHandler ¶
func (he *HandlerEnv) DeleteEventHandler(w http.ResponseWriter, r *http.Request)
func (*HandlerEnv) DeleteTaskHandler ¶
func (he *HandlerEnv) DeleteTaskHandler(w http.ResponseWriter, r *http.Request)
func (*HandlerEnv) GetEventHandler ¶
func (he *HandlerEnv) GetEventHandler(w http.ResponseWriter, r *http.Request)
func (*HandlerEnv) GetEventsByTaskIdHandler ¶
func (he *HandlerEnv) GetEventsByTaskIdHandler(w http.ResponseWriter, r *http.Request)
func (*HandlerEnv) GetEventsHandler ¶
func (he *HandlerEnv) GetEventsHandler(w http.ResponseWriter, r *http.Request)
func (*HandlerEnv) GetEventsInIntervalHandler ¶
func (he *HandlerEnv) GetEventsInIntervalHandler(w http.ResponseWriter, r *http.Request)
func (*HandlerEnv) GetSettingValueHandler ¶
func (he *HandlerEnv) GetSettingValueHandler(w http.ResponseWriter, r *http.Request)
func (*HandlerEnv) GetSettingsHandler ¶
func (he *HandlerEnv) GetSettingsHandler(w http.ResponseWriter, r *http.Request)
func (*HandlerEnv) GetTaskHandler ¶
func (he *HandlerEnv) GetTaskHandler(w http.ResponseWriter, r *http.Request)
func (*HandlerEnv) GetTasksHandler ¶
func (he *HandlerEnv) GetTasksHandler(w http.ResponseWriter, r *http.Request)
func (*HandlerEnv) IndexHandler ¶
func (he *HandlerEnv) IndexHandler(w http.ResponseWriter, r *http.Request)
func (*HandlerEnv) LoginHandler ¶
func (he *HandlerEnv) LoginHandler(w http.ResponseWriter, r *http.Request)
func (*HandlerEnv) LogoutHandler ¶
func (he *HandlerEnv) LogoutHandler(w http.ResponseWriter, r *http.Request)
func (*HandlerEnv) RegisterHandler ¶
func (he *HandlerEnv) RegisterHandler(w http.ResponseWriter, r *http.Request)
func (*HandlerEnv) SetCookie ¶
func (he *HandlerEnv) SetCookie(w http.ResponseWriter, name, value string)
func (*HandlerEnv) SetHttpOnlyCookie ¶
func (he *HandlerEnv) SetHttpOnlyCookie(w http.ResponseWriter, name, value string)
func (*HandlerEnv) UpdateEventHandler ¶
func (he *HandlerEnv) UpdateEventHandler(w http.ResponseWriter, r *http.Request)
func (*HandlerEnv) UpdateSettingValueHandler ¶
func (he *HandlerEnv) UpdateSettingValueHandler(w http.ResponseWriter, r *http.Request)
func (*HandlerEnv) UpdateTaskHandler ¶
func (he *HandlerEnv) UpdateTaskHandler(w http.ResponseWriter, r *http.Request)
func (*HandlerEnv) ValidateHandler ¶
func (he *HandlerEnv) ValidateHandler(w http.ResponseWriter, r *http.Request)
func (*HandlerEnv) VerifyTokenMiddleware ¶
func (he *HandlerEnv) VerifyTokenMiddleware(next http.Handler) http.Handler
Click to show internal directories.
Click to hide internal directories.