auth

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2022 License: MIT Imports: 8 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL