Documentation
¶
Index ¶
- type IKeyValue
- func (_m *IKeyValue) Close() error
- func (_m *IKeyValue) Delete(ctx context.Context, key string) error
- func (_m *IKeyValue) EXPECT() *IKeyValue_Expecter
- func (_m *IKeyValue) Get(ctx context.Context, key string) (key_value.KeyValueResult, error)
- func (_m *IKeyValue) IncrementCounterWithLimit(ctx context.Context, key string, counterMax int64, ttl time.Duration) error
- func (_m *IKeyValue) Set(ctx context.Context, key string, value interface{}, expiration time.Duration) error
- type IKeyValue_Close_Call
- type IKeyValue_Delete_Call
- type IKeyValue_Expecter
- func (_e *IKeyValue_Expecter) Close() *IKeyValue_Close_Call
- func (_e *IKeyValue_Expecter) Delete(ctx interface{}, key interface{}) *IKeyValue_Delete_Call
- func (_e *IKeyValue_Expecter) Get(ctx interface{}, key interface{}) *IKeyValue_Get_Call
- func (_e *IKeyValue_Expecter) IncrementCounterWithLimit(ctx interface{}, key interface{}, counterMax interface{}, ttl interface{}) *IKeyValue_IncrementCounterWithLimit_Call
- func (_e *IKeyValue_Expecter) Set(ctx interface{}, key interface{}, value interface{}, expiration interface{}) *IKeyValue_Set_Call
- type IKeyValue_Get_Call
- func (_c *IKeyValue_Get_Call) Return(_a0 key_value.KeyValueResult, _a1 error) *IKeyValue_Get_Call
- func (_c *IKeyValue_Get_Call) Run(run func(ctx context.Context, key string)) *IKeyValue_Get_Call
- func (_c *IKeyValue_Get_Call) RunAndReturn(run func(context.Context, string) (key_value.KeyValueResult, error)) *IKeyValue_Get_Call
- type IKeyValue_IncrementCounterWithLimit_Call
- func (_c *IKeyValue_IncrementCounterWithLimit_Call) Return(_a0 error) *IKeyValue_IncrementCounterWithLimit_Call
- func (_c *IKeyValue_IncrementCounterWithLimit_Call) Run(run func(ctx context.Context, key string, counterMax int64, ttl time.Duration)) *IKeyValue_IncrementCounterWithLimit_Call
- func (_c *IKeyValue_IncrementCounterWithLimit_Call) RunAndReturn(run func(context.Context, string, int64, time.Duration) error) *IKeyValue_IncrementCounterWithLimit_Call
- type IKeyValue_Set_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IKeyValue ¶
IKeyValue is an autogenerated mock type for the IKeyValue type
func NewIKeyValue ¶
NewIKeyValue creates a new instance of IKeyValue. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*IKeyValue) EXPECT ¶
func (_m *IKeyValue) EXPECT() *IKeyValue_Expecter
type IKeyValue_Close_Call ¶
IKeyValue_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*IKeyValue_Close_Call) Return ¶
func (_c *IKeyValue_Close_Call) Return(_a0 error) *IKeyValue_Close_Call
func (*IKeyValue_Close_Call) Run ¶
func (_c *IKeyValue_Close_Call) Run(run func()) *IKeyValue_Close_Call
func (*IKeyValue_Close_Call) RunAndReturn ¶
func (_c *IKeyValue_Close_Call) RunAndReturn(run func() error) *IKeyValue_Close_Call
type IKeyValue_Delete_Call ¶
IKeyValue_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*IKeyValue_Delete_Call) Return ¶
func (_c *IKeyValue_Delete_Call) Return(_a0 error) *IKeyValue_Delete_Call
func (*IKeyValue_Delete_Call) Run ¶
func (_c *IKeyValue_Delete_Call) Run(run func(ctx context.Context, key string)) *IKeyValue_Delete_Call
func (*IKeyValue_Delete_Call) RunAndReturn ¶
func (_c *IKeyValue_Delete_Call) RunAndReturn(run func(context.Context, string) error) *IKeyValue_Delete_Call
type IKeyValue_Expecter ¶
type IKeyValue_Expecter struct {
// contains filtered or unexported fields
}
func (*IKeyValue_Expecter) Close ¶
func (_e *IKeyValue_Expecter) Close() *IKeyValue_Close_Call
Close is a helper method to define mock.On call
func (*IKeyValue_Expecter) Delete ¶
func (_e *IKeyValue_Expecter) Delete(ctx interface{}, key interface{}) *IKeyValue_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- key string
func (*IKeyValue_Expecter) Get ¶
func (_e *IKeyValue_Expecter) Get(ctx interface{}, key interface{}) *IKeyValue_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- key string
func (*IKeyValue_Expecter) IncrementCounterWithLimit ¶
func (_e *IKeyValue_Expecter) IncrementCounterWithLimit(ctx interface{}, key interface{}, counterMax interface{}, ttl interface{}) *IKeyValue_IncrementCounterWithLimit_Call
IncrementCounterWithLimit is a helper method to define mock.On call
- ctx context.Context
- key string
- counterMax int64
- ttl time.Duration
func (*IKeyValue_Expecter) Set ¶
func (_e *IKeyValue_Expecter) Set(ctx interface{}, key interface{}, value interface{}, expiration interface{}) *IKeyValue_Set_Call
Set is a helper method to define mock.On call
- ctx context.Context
- key string
- value interface{}
- expiration time.Duration
type IKeyValue_Get_Call ¶
IKeyValue_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*IKeyValue_Get_Call) Return ¶
func (_c *IKeyValue_Get_Call) Return(_a0 key_value.KeyValueResult, _a1 error) *IKeyValue_Get_Call
func (*IKeyValue_Get_Call) Run ¶
func (_c *IKeyValue_Get_Call) Run(run func(ctx context.Context, key string)) *IKeyValue_Get_Call
func (*IKeyValue_Get_Call) RunAndReturn ¶
func (_c *IKeyValue_Get_Call) RunAndReturn(run func(context.Context, string) (key_value.KeyValueResult, error)) *IKeyValue_Get_Call
type IKeyValue_IncrementCounterWithLimit_Call ¶
IKeyValue_IncrementCounterWithLimit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IncrementCounterWithLimit'
func (*IKeyValue_IncrementCounterWithLimit_Call) Return ¶
func (_c *IKeyValue_IncrementCounterWithLimit_Call) Return(_a0 error) *IKeyValue_IncrementCounterWithLimit_Call
func (*IKeyValue_IncrementCounterWithLimit_Call) Run ¶
func (_c *IKeyValue_IncrementCounterWithLimit_Call) Run(run func(ctx context.Context, key string, counterMax int64, ttl time.Duration)) *IKeyValue_IncrementCounterWithLimit_Call
func (*IKeyValue_IncrementCounterWithLimit_Call) RunAndReturn ¶
func (_c *IKeyValue_IncrementCounterWithLimit_Call) RunAndReturn(run func(context.Context, string, int64, time.Duration) error) *IKeyValue_IncrementCounterWithLimit_Call
type IKeyValue_Set_Call ¶
IKeyValue_Set_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Set'
func (*IKeyValue_Set_Call) Return ¶
func (_c *IKeyValue_Set_Call) Return(_a0 error) *IKeyValue_Set_Call
func (*IKeyValue_Set_Call) Run ¶
func (_c *IKeyValue_Set_Call) Run(run func(ctx context.Context, key string, value interface{}, expiration time.Duration)) *IKeyValue_Set_Call
func (*IKeyValue_Set_Call) RunAndReturn ¶
func (_c *IKeyValue_Set_Call) RunAndReturn(run func(context.Context, string, interface{}, time.Duration) error) *IKeyValue_Set_Call