user_domain

package
v0.0.0-...-704a905 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUserAlreadyExist    = errors.New("user already exist")
	ErrUserDoesNotExist    = errors.New("user does not exist")
	ErrSessionDoesNotExist = errors.New("session does not exist")
)

Functions

This section is empty.

Types

type UserAgent

type UserAgent interface {
	Create(user *user_microservice_domain.User) error
	Update(id uint, user *user_microservice_domain.User) error
	Delete(id uint) error
	GetById(id uint) (*user_microservice_domain.User, error)
	GetByUsername(username string) (*user_microservice_domain.User, error)
	GetByEmail(email string) (*user_microservice_domain.User, error)
}

type UserUseCase

type UserUseCase interface {
	GetById(userId uint) (*user_microservice_domain.User, error)
	GetByUsername(username string) (*user_microservice_domain.User, error)
	GetByEmail(email string) (*user_microservice_domain.User, error)
	GetBySessionId(sessionId string) (*user_microservice_domain.User, error)
	Update(id uint, user *user_microservice_domain.User) error
	DeleteById(userId uint) error
	DeleteByUsername(username string) error
	DeleteByEmail(email string) error
	DeleteBySessionId(sessionId string) error
	CheckUsernameAndPassword(username string, password string) bool
	CheckEmailAndPassword(email string, password string) bool
}

Directories

Path Synopsis
client
s3
delivery
repository

Jump to

Keyboard shortcuts

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