Documentation ¶
Index ¶
- func AdminTokenValid(r *http.Request) error
- func CreateLoginToken(email, password string) (string, error)
- func CreateToken(user_id uint32, admin bool) (string, error)
- func ExtractLoginToken(tokenString string) (string, string, error)
- func ExtractToken(r *http.Request) string
- func ExtractTokenID(r *http.Request) (uint32, bool, error)
- func NotAdminTokenValid(r *http.Request) error
- func Pretty(data interface{})
- func TokenValid(r *http.Request) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdminTokenValid ¶
func CreateLoginToken ¶
func ExtractLoginToken ¶
returns email and password from login token
func ExtractToken ¶
func ExtractTokenID ¶
returns user id, admin
func NotAdminTokenValid ¶
func TokenValid ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.