Documentation
¶
Index ¶
- func CreateFirstAccount(reader domain.UsersReader, writer domain.UsersWriter, ...) func(context.Context, CreateFirstAccountCommand) error
- func Login(reader domain.UsersReader, hasher domain.PasswordHasher) func(context.Context, LoginCommand) (string, error)
- func UpdateUser(reader domain.UsersReader, writer domain.UsersWriter, ...) func(context.Context, UpdateUserCommand) error
- type CreateFirstAccountCommand
- type LoginCommand
- type UpdateUserCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFirstAccount ¶ added in v1.0.1
func CreateFirstAccount( reader domain.UsersReader, writer domain.UsersWriter, hasher domain.PasswordHasher, generator domain.KeyGenerator, ) func(context.Context, CreateFirstAccountCommand) error
Creates the first user account if no one exists yet.
func Login ¶
func Login( reader domain.UsersReader, hasher domain.PasswordHasher, ) func(context.Context, LoginCommand) (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 CreateFirstAccountCommand ¶ added in v1.0.1
type LoginCommand ¶
Click to show internal directories.
Click to hide internal directories.