mock_redis

package
v0.0.0-...-d841f61 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mock_redis is a generated GoMock package.

Package mock_redis is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockLock

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

MockLock is a mock of Lock interface

func NewMockLock

func NewMockLock(ctrl *gomock.Controller) *MockLock

NewMockLock creates a new mock instance

func (*MockLock) EXPECT

func (m *MockLock) EXPECT() *MockLockMockRecorder

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

func (*MockLock) Key

func (m *MockLock) Key() string

Key mocks base method

func (*MockLock) Refresh

func (m *MockLock) Refresh(arg0 context.Context, arg1 time.Duration, arg2 *redislock.Options) error

Refresh mocks base method

func (*MockLock) Release

func (m *MockLock) Release(arg0 context.Context) error

Release mocks base method

func (*MockLock) TTL

func (m *MockLock) TTL(arg0 context.Context) (time.Duration, error)

TTL mocks base method

func (*MockLock) Token

func (m *MockLock) Token() string

Token mocks base method

type MockLockClient

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

MockLockClient is a mock of LockClient interface

func NewMockLockClient

func NewMockLockClient(ctrl *gomock.Controller) *MockLockClient

NewMockLockClient creates a new mock instance

func (*MockLockClient) EXPECT

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

func (*MockLockClient) Obtain

func (m *MockLockClient) Obtain(arg0 context.Context, arg1 string, arg2 time.Duration, arg3 *redislock.Options) (redis.Lock, error)

Obtain mocks base method

type MockLockClientMockRecorder

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

MockLockClientMockRecorder is the mock recorder for MockLockClient

func (*MockLockClientMockRecorder) Obtain

func (mr *MockLockClientMockRecorder) Obtain(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

Obtain indicates an expected call of Obtain

type MockLockMockRecorder

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

MockLockMockRecorder is the mock recorder for MockLock

func (*MockLockMockRecorder) Key

func (mr *MockLockMockRecorder) Key() *gomock.Call

Key indicates an expected call of Key

func (*MockLockMockRecorder) Refresh

func (mr *MockLockMockRecorder) Refresh(arg0, arg1, arg2 interface{}) *gomock.Call

Refresh indicates an expected call of Refresh

func (*MockLockMockRecorder) Release

func (mr *MockLockMockRecorder) Release(arg0 interface{}) *gomock.Call

Release indicates an expected call of Release

func (*MockLockMockRecorder) TTL

func (mr *MockLockMockRecorder) TTL(arg0 interface{}) *gomock.Call

TTL indicates an expected call of TTL

func (*MockLockMockRecorder) Token

func (mr *MockLockMockRecorder) Token() *gomock.Call

Token indicates an expected call of Token

type MockStore

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

MockStore is a mock of Store interface

func NewMockStore

func NewMockStore(ctrl *gomock.Controller) *MockStore

NewMockStore creates a new mock instance

func (*MockStore) EXPECT

func (m *MockStore) EXPECT() *MockStoreMockRecorder

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

func (*MockStore) Restore

func (m *MockStore) Restore(arg0 context.Context, arg1 interface{}) (bool, error)

Restore mocks base method

func (*MockStore) Save

func (m *MockStore) Save(arg0 context.Context, arg1 interface{}) error

Save mocks base method

type MockStoreMockRecorder

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

MockStoreMockRecorder is the mock recorder for MockStore

func (*MockStoreMockRecorder) Restore

func (mr *MockStoreMockRecorder) Restore(arg0, arg1 interface{}) *gomock.Call

Restore indicates an expected call of Restore

func (*MockStoreMockRecorder) Save

func (mr *MockStoreMockRecorder) Save(arg0, arg1 interface{}) *gomock.Call

Save indicates an expected call of Save

Jump to

Keyboard shortcuts

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