Documentation ¶
Index ¶
- func HelloHandler(w http.ResponseWriter, r *http.Request)
- func JWTAuthHandler(h http.HandlerFunc) http.HandlerFunc
- func LoggingHandler(h http.Handler) http.Handler
- func LoginHandler(secret string, users user.Users) http.Handler
- func VersionHandler(version string) http.Handler
- type HelloResponse
- type LoginResponse
- type VersionResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HelloHandler ¶
func HelloHandler(w http.ResponseWriter, r *http.Request)
func JWTAuthHandler ¶
func JWTAuthHandler(h http.HandlerFunc) http.HandlerFunc
func VersionHandler ¶
Types ¶
type HelloResponse ¶
type HelloResponse struct {
Message string `json:"message"`
}
type LoginResponse ¶
type LoginResponse struct {
Token string `json:"token"`
}
type VersionResponse ¶
type VersionResponse struct {
Version string `json:"version"`
}
Click to show internal directories.
Click to hide internal directories.