service

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 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 Service

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

Service ...

func NewService

func NewService(r *repository.UserRepository) *Service

NewService returns new *Service instance.

func (*Service) CreateUser

func (s *Service) CreateUser(ctx context.Context, u *user.User) error

CreateUser creates new user in the system.

func (*Service) FindUserByID

func (s *Service) FindUserByID(ctx context.Context, id int) (*user.User, error)

FindUserByID find user by specific ID.

Jump to

Keyboard shortcuts

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