mock_greddis

package
v0.0.0-...-cd52361 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mock_greddis is a generated GoMock package.

Package mock_greddis is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClient

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

MockClient is a mock of Client interface

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance

func (*MockClient) Del

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

Del mocks base method

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

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

func (*MockClient) Get

func (m *MockClient) Get(ctx context.Context, key string) (*greddis.Result, error)

Get mocks base method

func (*MockClient) Ping

func (m *MockClient) Ping(ctx context.Context) error

Ping mocks base method

func (*MockClient) Publish

func (m *MockClient) Publish(ctx context.Context, topic string, message driver.Value) (int, error)

Publish mocks base method

func (*MockClient) Set

func (m *MockClient) Set(ctx context.Context, key string, value driver.Value, ttl int) error

Set mocks base method

type MockClientMockRecorder

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

MockClientMockRecorder is the mock recorder for MockClient

func (*MockClientMockRecorder) Del

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

Del indicates an expected call of Del

func (*MockClientMockRecorder) Get

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

Get indicates an expected call of Get

func (*MockClientMockRecorder) Ping

func (mr *MockClientMockRecorder) Ping(ctx interface{}) *gomock.Call

Ping indicates an expected call of Ping

func (*MockClientMockRecorder) Publish

func (mr *MockClientMockRecorder) Publish(ctx, topic, message interface{}) *gomock.Call

Publish indicates an expected call of Publish

func (*MockClientMockRecorder) Set

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

Set indicates an expected call of Set

type MockScanner

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

MockScanner is a mock of Scanner interface

func NewMockScanner

func NewMockScanner(ctrl *gomock.Controller) *MockScanner

NewMockScanner creates a new mock instance

func (*MockScanner) EXPECT

func (m *MockScanner) EXPECT() *MockScannerMockRecorder

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

func (*MockScanner) Scan

func (m *MockScanner) Scan(dst interface{}) error

Scan mocks base method

type MockScannerMockRecorder

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

MockScannerMockRecorder is the mock recorder for MockScanner

func (*MockScannerMockRecorder) Scan

func (mr *MockScannerMockRecorder) Scan(dst interface{}) *gomock.Call

Scan indicates an expected call of Scan

type MockSubClient

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

MockSubClient is a mock of SubClient interface

func NewMockSubClient

func NewMockSubClient(ctrl *gomock.Controller) *MockSubClient

NewMockSubClient creates a new mock instance

func (*MockSubClient) Del

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

Del mocks base method

func (*MockSubClient) EXPECT

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

func (*MockSubClient) Get

func (m *MockSubClient) Get(ctx context.Context, key string) (*greddis.Result, error)

Get mocks base method

func (*MockSubClient) Ping

func (m *MockSubClient) Ping(ctx context.Context) error

Ping mocks base method

func (*MockSubClient) Publish

func (m *MockSubClient) Publish(ctx context.Context, topic string, message driver.Value) (int, error)

Publish mocks base method

func (*MockSubClient) Set

func (m *MockSubClient) Set(ctx context.Context, key string, value driver.Value, ttl int) error

Set mocks base method

func (*MockSubClient) Subscribe

func (m *MockSubClient) Subscribe(ctx context.Context, topics ...interface{}) (greddis.MessageChanMap, error)

Subscribe mocks base method

func (*MockSubClient) Unsubscribe

func (m *MockSubClient) Unsubscribe(ctx context.Context, topics ...interface{}) error

Unsubscribe mocks base method

type MockSubClientMockRecorder

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

MockSubClientMockRecorder is the mock recorder for MockSubClient

func (*MockSubClientMockRecorder) Del

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

Del indicates an expected call of Del

func (*MockSubClientMockRecorder) Get

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

Get indicates an expected call of Get

func (*MockSubClientMockRecorder) Ping

func (mr *MockSubClientMockRecorder) Ping(ctx interface{}) *gomock.Call

Ping indicates an expected call of Ping

func (*MockSubClientMockRecorder) Publish

func (mr *MockSubClientMockRecorder) Publish(ctx, topic, message interface{}) *gomock.Call

Publish indicates an expected call of Publish

func (*MockSubClientMockRecorder) Set

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

Set indicates an expected call of Set

func (*MockSubClientMockRecorder) Subscribe

func (mr *MockSubClientMockRecorder) Subscribe(ctx interface{}, topics ...interface{}) *gomock.Call

Subscribe indicates an expected call of Subscribe

func (*MockSubClientMockRecorder) Unsubscribe

func (mr *MockSubClientMockRecorder) Unsubscribe(ctx interface{}, topics ...interface{}) *gomock.Call

Unsubscribe indicates an expected call of Unsubscribe

type MockSubscriber

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

MockSubscriber is a mock of Subscriber interface

func NewMockSubscriber

func NewMockSubscriber(ctrl *gomock.Controller) *MockSubscriber

NewMockSubscriber creates a new mock instance

func (*MockSubscriber) EXPECT

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

func (*MockSubscriber) Subscribe

func (m *MockSubscriber) Subscribe(ctx context.Context, topics ...interface{}) (greddis.MessageChanMap, error)

Subscribe mocks base method

func (*MockSubscriber) Unsubscribe

func (m *MockSubscriber) Unsubscribe(ctx context.Context, topics ...interface{}) error

Unsubscribe mocks base method

type MockSubscriberMockRecorder

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

MockSubscriberMockRecorder is the mock recorder for MockSubscriber

func (*MockSubscriberMockRecorder) Subscribe

func (mr *MockSubscriberMockRecorder) Subscribe(ctx interface{}, topics ...interface{}) *gomock.Call

Subscribe indicates an expected call of Subscribe

func (*MockSubscriberMockRecorder) Unsubscribe

func (mr *MockSubscriberMockRecorder) Unsubscribe(ctx interface{}, topics ...interface{}) *gomock.Call

Unsubscribe indicates an expected call of Unsubscribe

Jump to

Keyboard shortcuts

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