mocks

package
v0.0.0-...-833fa1d Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

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 any) error

Get mocks base method.

func (*Mockcacher) Set

func (m *Mockcacher) Set(ctx context.Context, key string, value any, lifetime time.Duration) 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, lifetime interface{}) *gomock.Call

Set indicates an expected call of Set.

type MockuserAccessor

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

MockuserAccessor is a mock of userAccessor interface.

func NewMockuserAccessor

func NewMockuserAccessor(ctrl *gomock.Controller) *MockuserAccessor

NewMockuserAccessor creates a new mock instance.

func (*MockuserAccessor) EXPECT

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

func (*MockuserAccessor) GetByPassword

func (m *MockuserAccessor) GetByPassword(ctx context.Context, email, password string) (*model.User, error)

GetByPassword mocks base method.

type MockuserAccessorMockRecorder

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

MockuserAccessorMockRecorder is the mock recorder for MockuserAccessor.

func (*MockuserAccessorMockRecorder) GetByPassword

func (mr *MockuserAccessorMockRecorder) GetByPassword(ctx, email, password interface{}) *gomock.Call

GetByPassword indicates an expected call of GetByPassword.

Jump to

Keyboard shortcuts

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