storage

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2023 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mock_storage is a generated GoMock package.

Package mock_storage 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) Delete

func (m *MockCacher) Delete(k, p string) *model.TechnicalError

Delete 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(k, p string) (string, *model.TechnicalError)

Get mocks base method.

func (*MockCacher) Hget

func (m *MockCacher) Hget(k, p string) (string, *model.TechnicalError)

Hget mocks base method.

func (*MockCacher) Hset

func (m *MockCacher) Hset(k, p string, v interface{}) *model.TechnicalError

Hset mocks base method.

func (*MockCacher) Set

func (m *MockCacher) Set(k, p string, v interface{}, d time.Duration) *model.TechnicalError

Set mocks base method.

func (*MockCacher) Ttl

Ttl mocks base method.

type MockCacherMockRecorder

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

MockCacherMockRecorder is the mock recorder for MockCacher.

func (*MockCacherMockRecorder) Delete

func (mr *MockCacherMockRecorder) Delete(k, p interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockCacherMockRecorder) Get

func (mr *MockCacherMockRecorder) Get(k, p interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockCacherMockRecorder) Hget

func (mr *MockCacherMockRecorder) Hget(k, p interface{}) *gomock.Call

Hget indicates an expected call of Hget.

func (*MockCacherMockRecorder) Hset

func (mr *MockCacherMockRecorder) Hset(k, p, v interface{}) *gomock.Call

Hset indicates an expected call of Hset.

func (*MockCacherMockRecorder) Set

func (mr *MockCacherMockRecorder) Set(k, p, v, d interface{}) *gomock.Call

Set indicates an expected call of Set.

func (*MockCacherMockRecorder) Ttl

func (mr *MockCacherMockRecorder) Ttl(k, p interface{}) *gomock.Call

Ttl indicates an expected call of Ttl.

type MockPooler

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

MockPooler is a mock of Pooler interface.

func NewMockPooler

func NewMockPooler(ctrl *gomock.Controller) *MockPooler

NewMockPooler creates a new mock instance.

func (*MockPooler) Begin

func (m *MockPooler) Begin(ctx context.Context) (pgx.Tx, error)

Begin mocks base method.

func (*MockPooler) BeginTx

func (m *MockPooler) BeginTx(ctx context.Context, opts pgx.TxOptions) (pgx.Tx, error)

BeginTx mocks base method.

func (*MockPooler) EXPECT

func (m *MockPooler) EXPECT() *MockPoolerMockRecorder

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

func (*MockPooler) Exec

func (m *MockPooler) Exec(ctx context.Context, sql string, args ...interface{}) (pgconn.CommandTag, error)

Exec mocks base method.

func (*MockPooler) Query

func (m *MockPooler) Query(ctx context.Context, sql string, args ...interface{}) (pgx.Rows, error)

Query mocks base method.

func (*MockPooler) QueryRow

func (m *MockPooler) QueryRow(ctx context.Context, sql string, args ...interface{}) pgx.Row

QueryRow mocks base method.

type MockPoolerMockRecorder

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

MockPoolerMockRecorder is the mock recorder for MockPooler.

func (*MockPoolerMockRecorder) Begin

func (mr *MockPoolerMockRecorder) Begin(ctx interface{}) *gomock.Call

Begin indicates an expected call of Begin.

func (*MockPoolerMockRecorder) BeginTx

func (mr *MockPoolerMockRecorder) BeginTx(ctx, opts interface{}) *gomock.Call

BeginTx indicates an expected call of BeginTx.

func (*MockPoolerMockRecorder) Exec

func (mr *MockPoolerMockRecorder) Exec(ctx, sql interface{}, args ...interface{}) *gomock.Call

Exec indicates an expected call of Exec.

func (*MockPoolerMockRecorder) Query

func (mr *MockPoolerMockRecorder) Query(ctx, sql interface{}, args ...interface{}) *gomock.Call

Query indicates an expected call of Query.

func (*MockPoolerMockRecorder) QueryRow

func (mr *MockPoolerMockRecorder) QueryRow(ctx, sql interface{}, args ...interface{}) *gomock.Call

QueryRow indicates an expected call of QueryRow.

Jump to

Keyboard shortcuts

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