services

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

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

Go to latest
Published: Sep 29, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUserService

func GetUserService(repository repositories.IRepository) interfaces.IUser

Types

type UserService

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

func (*UserService) Authenticate

func (u *UserService) Authenticate(user *models.Login) (auth *models.LoginResponse, err error)

func (*UserService) Delete

func (u *UserService) Delete(id string) error

func (*UserService) Get

func (u *UserService) Get(id string) (*models.User, error)

func (*UserService) Logout

func (u *UserService) Logout(id string) error

func (*UserService) Patch

func (u *UserService) Patch(user *models.User) (*models.User, error)

func (*UserService) Register

func (u *UserService) Register(user *models.User) (*models.SignupResponse, error)

Jump to

Keyboard shortcuts

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