Documentation
¶
Index ¶
- Variables
- func AuthorizationMiddleware(c *routing.Context) error
- func AuthorizeTokenHandler(c *routing.Context) error
- func GenerateToken(username string, password string) (string, error)
- func GetTokenHandler(c *routing.Context) error
- func InitGAPIAuthenticationServer(router *routing.Router)
- func NotAllowed(c *routing.Context) error
- func ValidateToken(tokenString string) error
- func ValidateUserCredentials(username string, password string) error
- type TokenRequestObj
Constants ¶
This section is empty.
Variables ¶
View Source
var EXPIRATION_TIME = 15000
View Source
var SIGNING_KEY = "AllYourBase"
Functions ¶
func AuthorizationMiddleware ¶
func AuthorizeTokenHandler ¶
func GetTokenHandler ¶
func NotAllowed ¶
func ValidateToken ¶
func ValidateUserCredentials ¶
Types ¶
type TokenRequestObj ¶
Click to show internal directories.
Click to hide internal directories.