Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IDGenerator ¶
type PasswordManager ¶
type TransactionManager ¶
type UserCreateInput ¶
type UserCredentialCreateUpdateInput ¶
type UserCredentialCreateUpdateInput struct { UserID entity.ID Password entity.HashedPassword }
type UserCredentialGateway ¶
type UserCredentialGateway interface { GetByEmail(ctx context.Context, email entity.Email) (*entity.UserCredential, error) Check(ctx context.Context, email entity.Email, password entity.Password) error Create(ctx context.Context, input UserCredentialCreateInput) (*entity.UserCredential, error) Update(ctx context.Context, input UserCredentialCreateUpdateInput) (*entity.UserCredential, error) }
type UserGateway ¶
type UserGateway interface { Get(ctx context.Context, id entity.ID) (*entity.User, error) List(ctx context.Context, input UserListInput) (entity.Users, error) Create(ctx context.Context, input UserCreateInput) (*entity.User, error) Update(ctx context.Context, input UserUpdateInput) (*entity.User, error) }
type UserListInput ¶
Click to show internal directories.
Click to hide internal directories.