user

package
v0.0.0-...-7d5b20a Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2022 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUserAlreadyExist = errors.New("user already exist")
	ErrInvalidPassword  = errors.New("invalid password")
)

Functions

This section is empty.

Types

type Service

type Service interface {
	Insert(entities.User) error
	Login(username, password string) bool
	UpdatePassword(UpdateUserPasswordInput) error
	CreateDefaultUser() error
}

func NewUserService

func NewUserService(repository user.Repository) Service

type UpdateUserPasswordInput

type UpdateUserPasswordInput struct {
	Username    string
	OldPassword string
	NewPassword string
}

Jump to

Keyboard shortcuts

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