usecase

package
v0.0.0-...-a7107f1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2020 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UseCase

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

func NewUseCase

func NewUseCase(repository user.Repository) UseCase

func (UseCase) Create

func (useCase UseCase) Create(user models.User) error

func (UseCase) GetByNickname

func (useCase UseCase) GetByNickname(nickname string) (user models.User, err error)

func (UseCase) GetWithSameNicknameAndEmail

func (useCase UseCase) GetWithSameNicknameAndEmail(nickname, email string) (users models.Users, err error)

func (UseCase) UpdateByNickname

func (useCase UseCase) UpdateByNickname(user models.User) (models.User, error)

Jump to

Keyboard shortcuts

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