factories

package
v0.0.0-...-bc034c2 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserFactory

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

func NewUserFactory

func NewUserFactory(repo repositories.UserReadRepository) *UserFactory

func (*UserFactory) Authenticate

func (uf *UserFactory) Authenticate(login, password string) (*domain.User, error)

func (*UserFactory) RestoreAll

func (uf *UserFactory) RestoreAll() ([]domain.User, error)

func (*UserFactory) RestoreOne

func (uf *UserFactory) RestoreOne(id int64) (*domain.User, error)

Jump to

Keyboard shortcuts

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