services

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

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

Go to latest
Published: Mar 7, 2023 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 AuthenticationService

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

func NewAuthenticationService

func NewAuthenticationService(database squirrel.StatementBuilderType, redisManager *redis.Client, jwtManager util.JwtManager) *AuthenticationService

func (*AuthenticationService) RefreshToken

func (as *AuthenticationService) RefreshToken(token string) (newToken string, err error)

func (*AuthenticationService) SignIn

func (as *AuthenticationService) SignIn(email string, password string) (token string, expiration string, err error)

func (*AuthenticationService) SignOut

func (as *AuthenticationService) SignOut(token string) (message string, err error)

func (*AuthenticationService) SignUp

func (as *AuthenticationService) SignUp(email string, password string) (userId string, err error)

type IAuthenticationService

type IAuthenticationService interface {
	SignIn(email string, password string) (token string, expiration string, err error)
	SignUp(email string, password string) (userId string, err error)
	SignOut(token string) (message string, err error)
	RefreshToken(token string) (newToken string, err error)
}

Jump to

Keyboard shortcuts

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