client

package
v0.0.0-...-fd201ba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockUserClient

type MockUserClient struct {
	mock.Mock
}

func (*MockUserClient) Create

func (r *MockUserClient) Create(ctx context.Context, userParam domain.User) (*domain.User, error)

func (*MockUserClient) GetByEmail

func (r *MockUserClient) GetByEmail(ctx context.Context, email string) (*domain.User, error)

func (*MockUserClient) GetByUUID

func (r *MockUserClient) GetByUUID(ctx context.Context, UserUUID string) (*domain.User, error)

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 (r *MockUserClient) UpdateGoogleID(ctx context.Context, ID uint64, googleID string) error

func (*MockUserClient) UpdateLastLoginTime

func (r *MockUserClient) UpdateLastLoginTime(ctx context.Context, ID uint64) error

func (*MockUserClient) UpdatePassword

func (r *MockUserClient) UpdatePassword(ctx context.Context, ID uint64, password string) error

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) Create

func (r UserClient) Create(ctx context.Context, userParam domain.User) (*domain.User, error)

func (UserClient) GetByEmail

func (r UserClient) GetByEmail(ctx context.Context, email string) (*domain.User, error)

func (UserClient) GetByUUID

func (r UserClient) GetByUUID(ctx context.Context, UserUUID string) (*domain.User, error)

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 (r UserClient) UpdateGoogleID(ctx context.Context, ID uint64, googleID string) error

func (UserClient) UpdateLastLoginTime

func (r UserClient) UpdateLastLoginTime(ctx context.Context, ID uint64) error

func (UserClient) UpdatePassword

func (r UserClient) UpdatePassword(ctx context.Context, ID uint64, password string) error

func (UserClient) VerifiedEmail

func (r UserClient) VerifiedEmail(ctx context.Context, email string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL