Documentation
¶
Index ¶
- func Login(reader domain.UsersReader, hasher domain.PasswordHasher) func(context.Context, LoginCommand) (string, error)
- func Register(reader domain.UsersReader, writer domain.UsersWriter, ...) func(context.Context, RegisterCommand) (string, error)
- func UpdateUser(reader domain.UsersReader, writer domain.UsersWriter, ...) func(context.Context, UpdateUserCommand) error
- type LoginCommand
- type RegisterCommand
- type UpdateUserCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Login ¶
func Login( reader domain.UsersReader, hasher domain.PasswordHasher, ) func(context.Context, LoginCommand) (string, error)
func Register ¶
func Register( reader domain.UsersReader, writer domain.UsersWriter, hasher domain.PasswordHasher, generator domain.KeyGenerator, ) func(context.Context, RegisterCommand) (string, error)
func UpdateUser ¶
func UpdateUser( reader domain.UsersReader, writer domain.UsersWriter, hasher domain.PasswordHasher, ) func(context.Context, UpdateUserCommand) error
Update user profile.
Types ¶
type LoginCommand ¶
type RegisterCommand ¶
Click to show internal directories.
Click to hide internal directories.