auth

package
v0.0.0-...-96dbec4 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository interface {
	DeleteToken(token *entities.Token) *errors.ApplicationError
	SetToken(token *entities.Token) *errors.ApplicationError
}

func NewRepository

func NewRepository(keys *redis.Client) Repository

type Service

type Service interface {
	CreateToken(u *entities.User, config *config.ServerConfig) (*entities.TokenResponse, *errors.ApplicationError)
	ValidateToken(t string, tType string, config *config.ServerConfig) (*entities.Token, *errors.ApplicationError)
	DeleteToken(token *entities.Token) *errors.ApplicationError
	ExtractTokenClaims(t string, tType string, config *config.ServerConfig) (*entities.Token, *errors.ApplicationError)
}

func NewService

func NewService(r Repository) Service

Jump to

Keyboard shortcuts

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