authv1

package
v0.0.0-...-0f445ee Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DomainName = "authv1"
)
View Source
const (
	SessionCookie = "go-garage-session"
)

Variables

This section is empty.

Functions

func Registrate

func Registrate(ctx context.Context) (context.Context, error)

Types

type AuthV1

type AuthV1 struct {
	// contains filtered or unexported fields
}

func Get

func Get(ctx context.Context) (*AuthV1, error)

func (*AuthV1) ClearOldTokens

func (a *AuthV1) ClearOldTokens()

func (*AuthV1) CreateToken

func (a *AuthV1) CreateToken(id int) (string, error)

func (*AuthV1) DeleteToken

func (a *AuthV1) DeleteToken(id string) (err error)

func (*AuthV1) GetToken

func (a *AuthV1) GetToken(id string) (data *models.Token, err error)

type TokenDataResult

type TokenDataResult httpsrv.ResultAnsw

Return separated items

Jump to

Keyboard shortcuts

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