login

package
v0.0.0-...-34a2968 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidCredentials = errors.New("Invalid Username or Password")
	ErrUsersQuotaReached  = errors.New("Users quota reached")
	ErrGettingUserQuota   = errors.New("Error getting user quota")
)

Functions

This section is empty.

Types

type LoginService

type LoginService struct {
	Bus          bus.Bus             `inject:""`
	QuotaService *quota.QuotaService `inject:""`
}

func (*LoginService) Init

func (ls *LoginService) Init() error

func (*LoginService) UpsertUser

func (ls *LoginService) UpsertUser(cmd *models.UpsertUserCommand) error

UpsertUser updates an existing user, or if it doesn't exist, inserts a new one.

Jump to

Keyboard shortcuts

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