Documentation ¶ Index ¶ Variables func GetBearer(r *http.Request) (string, error) func GetCookie(r *http.Request, typ jwt.TokenType) (string, error) func GetRoleHash(role uint32, group *uuid.UUID) []byte func GetToken(r *http.Request, typ jwt.TokenType) (string, error) func SetBearer(r *http.Request, token string) Constants ¶ This section is empty. Variables ¶ View Source var ( ErrInvalidToken = errors.New("invalid token") ) Functions ¶ func GetBearer ¶ func GetBearer(r *http.Request) (string, error) func GetCookie ¶ func GetCookie(r *http.Request, typ jwt.TokenType) (string, error) func GetRoleHash ¶ func GetRoleHash(role uint32, group *uuid.UUID) []byte func GetToken ¶ func GetToken(r *http.Request, typ jwt.TokenType) (string, error) func SetBearer ¶ func SetBearer(r *http.Request, token string) Types ¶ This section is empty. Source Files ¶ View all Source files bearer.go hash.go Directories ¶ Show internal Expand all Path Synopsis auth hmacsig Click to show internal directories. Click to hide internal directories.