business

package
v0.0.0-...-4a3359c Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: AGPL-3.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUserNotFound = errors.New("user Not Found")
	ErrUserInvalid  = errors.New("user Invalid")
	ErrEmailInvalid = errors.New("user email could not be empty")
)
View Source
var ErrInvalidAccessKey = errors.New("access key is not valid! Guest token provision is impossible")

Functions

func GetClaims

func GetClaims(token *jwt.Token) (*meta.AuthClaims, error)

func NewAuthServiceJWT

func NewAuthServiceJWT(userService service.UserService, authConfig env.AuthConfig) service.AuthService

func NewInteractService

func NewInteractService(userService service.UserService, likesRepo repo.LikesRepository) service.InteractService

func NewMailService

func NewMailService(userService service.UserService, subsRepo repo.SubscriptionRepository, config env.MailConfig, fallbackConfig env.MailConfig) service.MailService

func NewUserService

func NewUserService(userRepo repo.UserRepository, remoteRepo repo.RemoteRepository, config env.ServiceConfig) service.UserService

Types

type UserSorter

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

func NewSorter

func NewSorter(items []*model.User, property string) (s *UserSorter)

func (*UserSorter) Asc

func (s *UserSorter) Asc() []*model.User

func (*UserSorter) Desc

func (s *UserSorter) Desc() []*model.User

func (*UserSorter) Len

func (s *UserSorter) Len() int

func (*UserSorter) Less

func (s *UserSorter) Less(i, j int) bool

func (*UserSorter) Sort

func (s *UserSorter) Sort(desc bool) []*model.User

func (*UserSorter) Swap

func (s *UserSorter) Swap(i, j int)

Jump to

Keyboard shortcuts

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