Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockAdapter
- func (m *MockAdapter) EXPECT() *MockAdapterMockRecorder
- func (m *MockAdapter) Get(ctx context.Context, key string, value interface{}) error
- func (m *MockAdapter) IncrBy(ctx context.Context, key string, value int64) error
- func (m *MockAdapter) Set(ctx context.Context, key string, value interface{}, expiration time.Duration) error
- func (m *MockAdapter) SumKeys(ctx context.Context, keys []string) (int64, error)
- type MockAdapterMockRecorder
- func (mr *MockAdapterMockRecorder) Get(ctx, key, value interface{}) *gomock.Call
- func (mr *MockAdapterMockRecorder) IncrBy(ctx, key, value interface{}) *gomock.Call
- func (mr *MockAdapterMockRecorder) Set(ctx, key, value, expiration interface{}) *gomock.Call
- func (mr *MockAdapterMockRecorder) SumKeys(ctx, keys interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAdapter ¶
type MockAdapter struct {
// contains filtered or unexported fields
}
MockAdapter is a mock of Adapter interface.
func NewMockAdapter ¶
func NewMockAdapter(ctrl *gomock.Controller) *MockAdapter
NewMockAdapter creates a new mock instance.
func (*MockAdapter) EXPECT ¶
func (m *MockAdapter) EXPECT() *MockAdapterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAdapter) Get ¶
func (m *MockAdapter) Get(ctx context.Context, key string, value interface{}) error
Get mocks base method.
type MockAdapterMockRecorder ¶
type MockAdapterMockRecorder struct {
// contains filtered or unexported fields
}
MockAdapterMockRecorder is the mock recorder for MockAdapter.
func (*MockAdapterMockRecorder) Get ¶
func (mr *MockAdapterMockRecorder) Get(ctx, key, value interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockAdapterMockRecorder) IncrBy ¶
func (mr *MockAdapterMockRecorder) IncrBy(ctx, key, value interface{}) *gomock.Call
IncrBy indicates an expected call of IncrBy.
func (*MockAdapterMockRecorder) Set ¶
func (mr *MockAdapterMockRecorder) Set(ctx, key, value, expiration interface{}) *gomock.Call
Set indicates an expected call of Set.
func (*MockAdapterMockRecorder) SumKeys ¶
func (mr *MockAdapterMockRecorder) SumKeys(ctx, keys interface{}) *gomock.Call
SumKeys indicates an expected call of SumKeys.
Click to show internal directories.
Click to hide internal directories.