Documentation ¶
Overview ¶
Package mock_greddis is a generated GoMock package.
Package mock_greddis is a generated GoMock package.
Index ¶
- type MockClient
- func (m *MockClient) Del(ctx context.Context, key string) error
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) Get(ctx context.Context, key string) (*greddis.Result, error)
- func (m *MockClient) Ping(ctx context.Context) error
- func (m *MockClient) Publish(ctx context.Context, topic string, message driver.Value) (int, error)
- func (m *MockClient) Set(ctx context.Context, key string, value driver.Value, ttl int) error
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) Del(ctx, key interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Get(ctx, key interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Ping(ctx interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Publish(ctx, topic, message interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Set(ctx, key, value, ttl interface{}) *gomock.Call
- type MockScanner
- type MockScannerMockRecorder
- type MockSubClient
- func (m *MockSubClient) Del(ctx context.Context, key string) error
- func (m *MockSubClient) EXPECT() *MockSubClientMockRecorder
- func (m *MockSubClient) Get(ctx context.Context, key string) (*greddis.Result, error)
- func (m *MockSubClient) Ping(ctx context.Context) error
- func (m *MockSubClient) Publish(ctx context.Context, topic string, message driver.Value) (int, error)
- func (m *MockSubClient) Set(ctx context.Context, key string, value driver.Value, ttl int) error
- func (m *MockSubClient) Subscribe(ctx context.Context, topics ...interface{}) (greddis.MessageChanMap, error)
- func (m *MockSubClient) Unsubscribe(ctx context.Context, topics ...interface{}) error
- type MockSubClientMockRecorder
- func (mr *MockSubClientMockRecorder) Del(ctx, key interface{}) *gomock.Call
- func (mr *MockSubClientMockRecorder) Get(ctx, key interface{}) *gomock.Call
- func (mr *MockSubClientMockRecorder) Ping(ctx interface{}) *gomock.Call
- func (mr *MockSubClientMockRecorder) Publish(ctx, topic, message interface{}) *gomock.Call
- func (mr *MockSubClientMockRecorder) Set(ctx, key, value, ttl interface{}) *gomock.Call
- func (mr *MockSubClientMockRecorder) Subscribe(ctx interface{}, topics ...interface{}) *gomock.Call
- func (mr *MockSubClientMockRecorder) Unsubscribe(ctx interface{}, topics ...interface{}) *gomock.Call
- type MockSubscriber
- type MockSubscriberMockRecorder
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) Ping ¶
func (m *MockClient) Ping(ctx context.Context) error
Ping 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
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 ¶
func (m *MockSubClient) EXPECT() *MockSubClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
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) 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 ¶
func (m *MockSubscriber) EXPECT() *MockSubscriberMockRecorder
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