Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrWrongPassword = errors.Errorf("wrong password")
)
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service has methods with business logic
func (*Service) RegisterUser ¶
func (svc *Service) RegisterUser( ctx context.Context, userToReg *model.UserToRegister, ) (*model.User, error)
RegisterUser registers user
func (*Service) SignInUser ¶
func (svc *Service) SignInUser( ctx context.Context, userToSignIn *model.UserToSignIn, ) (token string, err error)
SignInUser do user sign-in
Click to show internal directories.
Click to hide internal directories.