Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthManager ¶
type AuthManager struct {
// contains filtered or unexported fields
}
func NewAuthManager ¶
func NewAuthManager(secret string) AuthManager
NewAuthManager create an auth manager instance
func (*AuthManager) AuthenticateMiddleware ¶
func (am *AuthManager) AuthenticateMiddleware(c *gin.Context)
AuthenticateMiddleware authenticate query with a token
func (*AuthManager) CreateToken ¶
func (am *AuthManager) CreateToken(name string, expirationDate string) (string, *errors.GimmeError)
CreateToken create access token
Click to show internal directories.
Click to hide internal directories.