Documentation ¶
Index ¶
- type MockUserClient
- func (r *MockUserClient) Create(ctx context.Context, userParam domain.User) (*domain.User, error)
- func (r *MockUserClient) GetByEmail(ctx context.Context, email string) (*domain.User, error)
- func (r *MockUserClient) GetByUUID(ctx context.Context, UserUUID string) (*domain.User, error)
- func (r *MockUserClient) IsEmailUnique(ctx context.Context, email string) error
- func (r *MockUserClient) MarkWelcomeMessageSent(ctx context.Context, ID uint64) error
- func (r *MockUserClient) UpdateGoogleID(ctx context.Context, ID uint64, googleID string) error
- func (r *MockUserClient) UpdateLastLoginTime(ctx context.Context, ID uint64) error
- func (r *MockUserClient) UpdatePassword(ctx context.Context, ID uint64, password string) error
- func (r *MockUserClient) VerifiedEmail(ctx context.Context, email string) error
- type UserClient
- func (r UserClient) Close()
- func (r UserClient) Create(ctx context.Context, userParam domain.User) (*domain.User, error)
- func (r UserClient) GetByEmail(ctx context.Context, email string) (*domain.User, error)
- func (r UserClient) GetByUUID(ctx context.Context, UserUUID string) (*domain.User, error)
- func (r UserClient) IsEmailUnique(ctx context.Context, email string) error
- func (r UserClient) MarkWelcomeMessageSent(ctx context.Context, ID uint64) error
- func (r UserClient) UpdateGoogleID(ctx context.Context, ID uint64, googleID string) error
- func (r UserClient) UpdateLastLoginTime(ctx context.Context, ID uint64) error
- func (r UserClient) UpdatePassword(ctx context.Context, ID uint64, password string) error
- func (r UserClient) VerifiedEmail(ctx context.Context, email string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockUserClient ¶
func (*MockUserClient) GetByEmail ¶
func (*MockUserClient) IsEmailUnique ¶
func (r *MockUserClient) IsEmailUnique(ctx context.Context, email string) error
func (*MockUserClient) MarkWelcomeMessageSent ¶
func (r *MockUserClient) MarkWelcomeMessageSent(ctx context.Context, ID uint64) error
func (*MockUserClient) UpdateGoogleID ¶
func (*MockUserClient) UpdateLastLoginTime ¶
func (r *MockUserClient) UpdateLastLoginTime(ctx context.Context, ID uint64) error
func (*MockUserClient) UpdatePassword ¶
func (*MockUserClient) VerifiedEmail ¶
func (r *MockUserClient) VerifiedEmail(ctx context.Context, email string) error
type UserClient ¶
type UserClient struct {
// contains filtered or unexported fields
}
func NewUserClient ¶
func NewUserClient(log logger.Logger, conf config.UserManagement) *UserClient
func (UserClient) Close ¶
func (r UserClient) Close()
func (UserClient) GetByEmail ¶
func (UserClient) IsEmailUnique ¶
func (r UserClient) IsEmailUnique(ctx context.Context, email string) error
func (UserClient) MarkWelcomeMessageSent ¶
func (r UserClient) MarkWelcomeMessageSent(ctx context.Context, ID uint64) error
func (UserClient) UpdateGoogleID ¶
func (UserClient) UpdateLastLoginTime ¶
func (r UserClient) UpdateLastLoginTime(ctx context.Context, ID uint64) error
func (UserClient) UpdatePassword ¶
func (UserClient) VerifiedEmail ¶
func (r UserClient) VerifiedEmail(ctx context.Context, email string) error
Click to show internal directories.
Click to hide internal directories.