mocks

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCacher

type MockCacher struct {
	// contains filtered or unexported fields
}

MockCacher is a mock of Cacher interface.

func NewMockCacher

func NewMockCacher(ctrl *gomock.Controller) *MockCacher

NewMockCacher creates a new mock instance.

func (*MockCacher) Del

func (m *MockCacher) Del(ctx context.Context, key string) error

Del mocks base method.

func (*MockCacher) EXPECT

func (m *MockCacher) EXPECT() *MockCacherMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCacher) Get

func (m *MockCacher) Get(ctx context.Context, key string, target interface{}) error

Get mocks base method.

func (*MockCacher) Set

func (m *MockCacher) Set(ctx context.Context, key string, value interface{}) error

Set mocks base method.

type MockCacherMockRecorder

type MockCacherMockRecorder struct {
	// contains filtered or unexported fields
}

MockCacherMockRecorder is the mock recorder for MockCacher.

func (*MockCacherMockRecorder) Del

func (mr *MockCacherMockRecorder) Del(ctx, key interface{}) *gomock.Call

Del indicates an expected call of Del.

func (*MockCacherMockRecorder) Get

func (mr *MockCacherMockRecorder) Get(ctx, key, target interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockCacherMockRecorder) Set

func (mr *MockCacherMockRecorder) Set(ctx, key, value interface{}) *gomock.Call

Set indicates an expected call of Set.

type MockQuerier

type MockQuerier struct {
	// contains filtered or unexported fields
}

MockQuerier is a mock of Querier interface.

func NewMockQuerier

func NewMockQuerier(ctrl *gomock.Controller) *MockQuerier

NewMockQuerier creates a new mock instance.

func (*MockQuerier) CreateUser

func (m *MockQuerier) CreateUser(ctx context.Context, arg dao.CreateUserParams) error

CreateUser mocks base method.

func (*MockQuerier) DeleteUser

func (m *MockQuerier) DeleteUser(ctx context.Context, username string) error

DeleteUser mocks base method.

func (*MockQuerier) EXPECT

func (m *MockQuerier) EXPECT() *MockQuerierMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockQuerier) GetUser

func (m *MockQuerier) GetUser(ctx context.Context, username string) (dao.User, error)

GetUser mocks base method.

func (*MockQuerier) ListUser

func (m *MockQuerier) ListUser(ctx context.Context, arg dao.ListUserParams) ([]dao.User, error)

ListUser mocks base method.

func (*MockQuerier) QueryUser

func (m *MockQuerier) QueryUser(ctx context.Context, arg dao.QueryUserParams) ([]dao.User, int64, error)

QueryUser mocks base method.

func (*MockQuerier) UpdateUser

func (m *MockQuerier) UpdateUser(ctx context.Context, arg dao.UpdateUserParams) error

UpdateUser mocks base method.

type MockQuerierMockRecorder

type MockQuerierMockRecorder struct {
	// contains filtered or unexported fields
}

MockQuerierMockRecorder is the mock recorder for MockQuerier.

func (*MockQuerierMockRecorder) CreateUser

func (mr *MockQuerierMockRecorder) CreateUser(ctx, arg interface{}) *gomock.Call

CreateUser indicates an expected call of CreateUser.

func (*MockQuerierMockRecorder) DeleteUser

func (mr *MockQuerierMockRecorder) DeleteUser(ctx, username interface{}) *gomock.Call

DeleteUser indicates an expected call of DeleteUser.

func (*MockQuerierMockRecorder) GetUser

func (mr *MockQuerierMockRecorder) GetUser(ctx, username interface{}) *gomock.Call

GetUser indicates an expected call of GetUser.

func (*MockQuerierMockRecorder) ListUser

func (mr *MockQuerierMockRecorder) ListUser(ctx, arg interface{}) *gomock.Call

ListUser indicates an expected call of ListUser.

func (*MockQuerierMockRecorder) QueryUser

func (mr *MockQuerierMockRecorder) QueryUser(ctx, arg interface{}) *gomock.Call

QueryUser indicates an expected call of QueryUser.

func (*MockQuerierMockRecorder) UpdateUser

func (mr *MockQuerierMockRecorder) UpdateUser(ctx, arg interface{}) *gomock.Call

UpdateUser indicates an expected call of UpdateUser.

type MockUser

type MockUser struct {
	// contains filtered or unexported fields
}

MockUser is a mock of User interface.

func NewMockUser

func NewMockUser(ctrl *gomock.Controller) *MockUser

NewMockUser creates a new mock instance.

func (*MockUser) AuthenticationPassword

func (m *MockUser) AuthenticationPassword(ctx context.Context, username, password string) (bool, string, error)

AuthenticationPassword mocks base method.

func (*MockUser) CacheGet

func (m *MockUser) CacheGet(ctx context.Context, username string) (entity.User, error)

CacheGet mocks base method.

func (*MockUser) Create

func (m *MockUser) Create(ctx context.Context, in entity.User) (entity.User, error)

Create mocks base method.

func (*MockUser) Delete

func (m *MockUser) Delete(ctx context.Context, username string) error

Delete mocks base method.

func (*MockUser) EXPECT

func (m *MockUser) EXPECT() *MockUserMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockUser) Get

func (m *MockUser) Get(ctx context.Context, username string) (entity.User, error)

Get mocks base method.

func (*MockUser) Query

Query mocks base method.

func (*MockUser) Update

func (m *MockUser) Update(ctx context.Context, in entity.User) (entity.User, error)

Update mocks base method.

type MockUserMockRecorder

type MockUserMockRecorder struct {
	// contains filtered or unexported fields
}

MockUserMockRecorder is the mock recorder for MockUser.

func (*MockUserMockRecorder) AuthenticationPassword

func (mr *MockUserMockRecorder) AuthenticationPassword(ctx, username, password interface{}) *gomock.Call

AuthenticationPassword indicates an expected call of AuthenticationPassword.

func (*MockUserMockRecorder) CacheGet

func (mr *MockUserMockRecorder) CacheGet(ctx, username interface{}) *gomock.Call

CacheGet indicates an expected call of CacheGet.

func (*MockUserMockRecorder) Create

func (mr *MockUserMockRecorder) Create(ctx, in interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockUserMockRecorder) Delete

func (mr *MockUserMockRecorder) Delete(ctx, username interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockUserMockRecorder) Get

func (mr *MockUserMockRecorder) Get(ctx, username interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockUserMockRecorder) Query

func (mr *MockUserMockRecorder) Query(ctx, p, o, u interface{}) *gomock.Call

Query indicates an expected call of Query.

func (*MockUserMockRecorder) Update

func (mr *MockUserMockRecorder) Update(ctx, in interface{}) *gomock.Call

Update indicates an expected call of Update.

Jump to

Keyboard shortcuts

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