Documentation ¶
Index ¶
- type IDGenerator
- type PasswordManager
- type TransactionManager
- type UserCredentialGateway
- func (_m *UserCredentialGateway) Check(ctx context.Context, email entity.Email, password entity.Password) error
- func (_m *UserCredentialGateway) Create(ctx context.Context, input port.UserCredentialCreateInput) (*entity.UserCredential, error)
- func (_m *UserCredentialGateway) GetByEmail(ctx context.Context, email entity.Email) (*entity.UserCredential, error)
- func (_m *UserCredentialGateway) Update(ctx context.Context, input port.UserCredentialCreateUpdateInput) (*entity.UserCredential, error)
- type UserGateway
- func (_m *UserGateway) Create(ctx context.Context, input port.UserCreateInput) (*entity.User, error)
- func (_m *UserGateway) Get(ctx context.Context, id entity.ID) (*entity.User, error)
- func (_m *UserGateway) List(ctx context.Context, input port.UserListInput) (entity.Users, error)
- func (_m *UserGateway) Update(ctx context.Context, input port.UserUpdateInput) (*entity.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IDGenerator ¶
IDGenerator is an autogenerated mock type for the IDGenerator type
func NewIDGenerator ¶
func NewIDGenerator(t interface { mock.TestingT Cleanup(func()) }) *IDGenerator
NewIDGenerator creates a new instance of IDGenerator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
type PasswordManager ¶
PasswordManager is an autogenerated mock type for the PasswordManager type
func NewPasswordManager ¶
func NewPasswordManager(t mockConstructorTestingTNewPasswordManager) *PasswordManager
NewPasswordManager creates a new instance of PasswordManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*PasswordManager) Compare ¶
func (_m *PasswordManager) Compare(ctx context.Context, hashedPassword entity.HashedPassword, password entity.Password) error
Compare provides a mock function with given fields: ctx, hashedPassword, password
func (*PasswordManager) Hash ¶
func (_m *PasswordManager) Hash(ctx context.Context, value string) (entity.HashedPassword, error)
Hash provides a mock function with given fields: ctx, value
type TransactionManager ¶
TransactionManager is an autogenerated mock type for the TransactionManager type
func NewTransactionManager ¶
func NewTransactionManager(t mockConstructorTestingTNewTransactionManager) *TransactionManager
NewTransactionManager creates a new instance of TransactionManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*TransactionManager) BeginContext ¶
BeginContext provides a mock function with given fields: parent
type UserCredentialGateway ¶
UserCredentialGateway is an autogenerated mock type for the UserCredentialGateway type
func NewUserCredentialGateway ¶
func NewUserCredentialGateway(t mockConstructorTestingTNewUserCredentialGateway) *UserCredentialGateway
NewUserCredentialGateway creates a new instance of UserCredentialGateway. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*UserCredentialGateway) Check ¶
func (_m *UserCredentialGateway) Check(ctx context.Context, email entity.Email, password entity.Password) error
Check provides a mock function with given fields: ctx, email, password
func (*UserCredentialGateway) Create ¶
func (_m *UserCredentialGateway) Create(ctx context.Context, input port.UserCredentialCreateInput) (*entity.UserCredential, error)
Create provides a mock function with given fields: ctx, input
func (*UserCredentialGateway) GetByEmail ¶
func (_m *UserCredentialGateway) GetByEmail(ctx context.Context, email entity.Email) (*entity.UserCredential, error)
GetByEmail provides a mock function with given fields: ctx, email
func (*UserCredentialGateway) Update ¶
func (_m *UserCredentialGateway) Update(ctx context.Context, input port.UserCredentialCreateUpdateInput) (*entity.UserCredential, error)
Update provides a mock function with given fields: ctx, input
type UserGateway ¶
UserGateway is an autogenerated mock type for the UserGateway type
func NewUserGateway ¶
func NewUserGateway(t mockConstructorTestingTNewUserGateway) *UserGateway
NewUserGateway creates a new instance of UserGateway. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*UserGateway) Create ¶
func (_m *UserGateway) Create(ctx context.Context, input port.UserCreateInput) (*entity.User, error)
Create provides a mock function with given fields: ctx, input
func (*UserGateway) List ¶
func (_m *UserGateway) List(ctx context.Context, input port.UserListInput) (entity.Users, error)
List provides a mock function with given fields: ctx, input
func (*UserGateway) Update ¶
func (_m *UserGateway) Update(ctx context.Context, input port.UserUpdateInput) (*entity.User, error)
Update provides a mock function with given fields: ctx, input