usermockedrepo

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockUserRepository

type MockUserRepository struct {
	mock.Mock
}

func (*MockUserRepository) Create

func (m *MockUserRepository) Create(ctx context.Context, usr *user.User) error

func (*MockUserRepository) CreateExternal

func (m *MockUserRepository) CreateExternal(ctx context.Context, extUsr *user.ExternalUser) error

func (*MockUserRepository) FindExternalBy

func (m *MockUserRepository) FindExternalBy(ctx context.Context, opts ...repositories.Option) ([]*user.ExternalUser, error)

func (*MockUserRepository) Get

func (m *MockUserRepository) Get(ctx context.Context, userID string) (*user.User, error)

func (*MockUserRepository) WithExternalUserID

func (m *MockUserRepository) WithExternalUserID(_ string) repositories.Option

func (*MockUserRepository) WithProviderID

func (m *MockUserRepository) WithProviderID(_ string) repositories.Option

func (*MockUserRepository) WithUserID

func (m *MockUserRepository) WithUserID(_ string) repositories.Option

Jump to

Keyboard shortcuts

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