user

package
v0.0.0-...-2b4ac10 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage interface {
	Create(u *model.User) error
	Delete(ID uuid.UUID) error
	ByEmail(email string) (model.User, error)
	All() (model.Users, error)
}

type UseCase

type UseCase interface {
	Create(u *model.User) error
	Delete(ID uuid.UUID) error
	ByEmail(email string) (model.User, error)
	All() (model.Users, error)
}

type User

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

func New

func New(s Storage) User

func (User) All

func (u User) All() (model.Users, error)

func (User) ByEmail

func (u User) ByEmail(email string) (model.User, error)

func (User) Create

func (u User) Create(m *model.User) error

func (User) Delete

func (u User) Delete(ID uuid.UUID) error

Jump to

Keyboard shortcuts

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