services

package
v1.50.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAccountNotFound            = errors.New("account not found")
	ErrAccountLinkedToAnotherUser = errors.New("account linked to another user")
	ErrTokenExpired               = errors.New("oauth token expired")
	ErrEmailInUse                 = errors.New("email already in use")
	ErrEmailRequired              = errors.New("email is required")
)

Functions

func NewAccountService

func NewAccountService(
	config *models.Config,
	accountRepo repositories.AccountRepository,
	tokenRepo repositories.TokenRepository,
	serviceHooks *models.CoreServiceHooksConfig,
	logger models.Logger,
) services.AccountService

func NewTokenService

func NewTokenService(tokenRepo repositories.TokenRepository) services.TokenService

Types

type Argon2PasswordService

type Argon2PasswordService struct{}

func NewArgon2PasswordService

func NewArgon2PasswordService() *Argon2PasswordService

func (*Argon2PasswordService) Hash

func (p *Argon2PasswordService) Hash(password string) (string, error)

func (*Argon2PasswordService) Verify

func (p *Argon2PasswordService) Verify(password, encoded string) bool

Jump to

Keyboard shortcuts

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