Documentation ¶
Index ¶
- func CreateToken(user_id uint32) (string, error)
- func ERROR(w http.ResponseWriter, statusCode int, err error)
- func ExtractToken(r *http.Request) string
- func ExtractTokenID(r *http.Request) (uint32, error)
- func FormatError(err string) error
- func JSON(w http.ResponseWriter, statusCode int, data interface{})
- func Pretty(data interface{})
- func TokenValid(r *http.Request) error
- func WaitForShutdown(server *http.Server)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateToken ¶
func ExtractToken ¶
func FormatError ¶
func JSON ¶
func JSON(w http.ResponseWriter, statusCode int, data interface{})
func TokenValid ¶
func WaitForShutdown ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.