Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authentication ¶
type Authentication interface { CreateAccount(ctx context.Context, email, password string) error Login(ctx context.Context, email, password string) (model.UserID, error) }
func NewAuthentication ¶
func NewAuthentication( accountRepository repository.Account, eventPublisher event.Publisher, transaction infra.TransactionManager, ) Authentication
type Authorization ¶
type Authorization interface { GenerateAccessToken(ctx context.Context, email, password string) (dto.AccessToken, error) ValidateAccessToken(ctx context.Context, accessToken string) (model.UserID, error) }
func NewAuthorization ¶
func NewAuthorization( authentication Authentication, clock infra.Clock, ) Authorization
type EventHandler ¶
func NewEventHandler ¶
func NewEventHandler(logger infra.Logger) EventHandler
Click to show internal directories.
Click to hide internal directories.