Documentation ¶
Index ¶
- type ManagerMock
- func (_m *ManagerMock) Delete(ctx context.Context, keys ...string) error
- func (_m *ManagerMock) EXPECT() *ManagerMock_Expecter
- func (_m *ManagerMock) Get(ctx context.Context, key string, value interface{}) error
- func (_m *ManagerMock) Invalidate(ctx context.Context, keyRegex string) error
- func (_m *ManagerMock) Set(ctx context.Context, key string, value interface{}) error
- func (_m *ManagerMock) SetWithExpiration(ctx context.Context, key string, value interface{}, expiration time.Duration) error
- type ManagerMock_Delete_Call
- func (_c *ManagerMock_Delete_Call) Return(_a0 error) *ManagerMock_Delete_Call
- func (_c *ManagerMock_Delete_Call) Run(run func(ctx context.Context, keys ...string)) *ManagerMock_Delete_Call
- func (_c *ManagerMock_Delete_Call) RunAndReturn(run func(context.Context, ...string) error) *ManagerMock_Delete_Call
- type ManagerMock_Expecter
- func (_e *ManagerMock_Expecter) Delete(ctx interface{}, keys ...interface{}) *ManagerMock_Delete_Call
- func (_e *ManagerMock_Expecter) Get(ctx interface{}, key interface{}, value interface{}) *ManagerMock_Get_Call
- func (_e *ManagerMock_Expecter) Invalidate(ctx interface{}, keyRegex interface{}) *ManagerMock_Invalidate_Call
- func (_e *ManagerMock_Expecter) Set(ctx interface{}, key interface{}, value interface{}) *ManagerMock_Set_Call
- func (_e *ManagerMock_Expecter) SetWithExpiration(ctx interface{}, key interface{}, value interface{}, expiration interface{}) *ManagerMock_SetWithExpiration_Call
- type ManagerMock_Get_Call
- func (_c *ManagerMock_Get_Call) Return(_a0 error) *ManagerMock_Get_Call
- func (_c *ManagerMock_Get_Call) Run(run func(ctx context.Context, key string, value interface{})) *ManagerMock_Get_Call
- func (_c *ManagerMock_Get_Call) RunAndReturn(run func(context.Context, string, interface{}) error) *ManagerMock_Get_Call
- type ManagerMock_Invalidate_Call
- func (_c *ManagerMock_Invalidate_Call) Return(_a0 error) *ManagerMock_Invalidate_Call
- func (_c *ManagerMock_Invalidate_Call) Run(run func(ctx context.Context, keyRegex string)) *ManagerMock_Invalidate_Call
- func (_c *ManagerMock_Invalidate_Call) RunAndReturn(run func(context.Context, string) error) *ManagerMock_Invalidate_Call
- type ManagerMock_SetWithExpiration_Call
- func (_c *ManagerMock_SetWithExpiration_Call) Return(_a0 error) *ManagerMock_SetWithExpiration_Call
- func (_c *ManagerMock_SetWithExpiration_Call) Run(...) *ManagerMock_SetWithExpiration_Call
- func (_c *ManagerMock_SetWithExpiration_Call) RunAndReturn(run func(context.Context, string, interface{}, time.Duration) error) *ManagerMock_SetWithExpiration_Call
- type ManagerMock_Set_Call
- func (_c *ManagerMock_Set_Call) Return(_a0 error) *ManagerMock_Set_Call
- func (_c *ManagerMock_Set_Call) Run(run func(ctx context.Context, key string, value interface{})) *ManagerMock_Set_Call
- func (_c *ManagerMock_Set_Call) RunAndReturn(run func(context.Context, string, interface{}) error) *ManagerMock_Set_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ManagerMock ¶
ManagerMock is an autogenerated mock type for the Manager type
func NewManagerMock ¶
func NewManagerMock(t interface { mock.TestingT Cleanup(func()) }) *ManagerMock
NewManagerMock creates a new instance of ManagerMock. 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 (*ManagerMock) Delete ¶
func (_m *ManagerMock) Delete(ctx context.Context, keys ...string) error
Delete provides a mock function with given fields: ctx, keys
func (*ManagerMock) EXPECT ¶
func (_m *ManagerMock) EXPECT() *ManagerMock_Expecter
func (*ManagerMock) Get ¶
func (_m *ManagerMock) Get(ctx context.Context, key string, value interface{}) error
Get provides a mock function with given fields: ctx, key, value
func (*ManagerMock) Invalidate ¶
func (_m *ManagerMock) Invalidate(ctx context.Context, keyRegex string) error
Invalidate provides a mock function with given fields: ctx, keyRegex
func (*ManagerMock) Set ¶
func (_m *ManagerMock) Set(ctx context.Context, key string, value interface{}) error
Set provides a mock function with given fields: ctx, key, value
func (*ManagerMock) SetWithExpiration ¶
func (_m *ManagerMock) SetWithExpiration(ctx context.Context, key string, value interface{}, expiration time.Duration) error
SetWithExpiration provides a mock function with given fields: ctx, key, value, expiration
type ManagerMock_Delete_Call ¶
ManagerMock_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*ManagerMock_Delete_Call) Return ¶
func (_c *ManagerMock_Delete_Call) Return(_a0 error) *ManagerMock_Delete_Call
func (*ManagerMock_Delete_Call) Run ¶
func (_c *ManagerMock_Delete_Call) Run(run func(ctx context.Context, keys ...string)) *ManagerMock_Delete_Call
func (*ManagerMock_Delete_Call) RunAndReturn ¶
func (_c *ManagerMock_Delete_Call) RunAndReturn(run func(context.Context, ...string) error) *ManagerMock_Delete_Call
type ManagerMock_Expecter ¶
type ManagerMock_Expecter struct {
// contains filtered or unexported fields
}
func (*ManagerMock_Expecter) Delete ¶
func (_e *ManagerMock_Expecter) Delete(ctx interface{}, keys ...interface{}) *ManagerMock_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- keys ...string
func (*ManagerMock_Expecter) Get ¶
func (_e *ManagerMock_Expecter) Get(ctx interface{}, key interface{}, value interface{}) *ManagerMock_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- key string
- value interface{}
func (*ManagerMock_Expecter) Invalidate ¶
func (_e *ManagerMock_Expecter) Invalidate(ctx interface{}, keyRegex interface{}) *ManagerMock_Invalidate_Call
Invalidate is a helper method to define mock.On call
- ctx context.Context
- keyRegex string
func (*ManagerMock_Expecter) Set ¶
func (_e *ManagerMock_Expecter) Set(ctx interface{}, key interface{}, value interface{}) *ManagerMock_Set_Call
Set is a helper method to define mock.On call
- ctx context.Context
- key string
- value interface{}
func (*ManagerMock_Expecter) SetWithExpiration ¶
func (_e *ManagerMock_Expecter) SetWithExpiration(ctx interface{}, key interface{}, value interface{}, expiration interface{}) *ManagerMock_SetWithExpiration_Call
SetWithExpiration is a helper method to define mock.On call
- ctx context.Context
- key string
- value interface{}
- expiration time.Duration
type ManagerMock_Get_Call ¶
ManagerMock_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*ManagerMock_Get_Call) Return ¶
func (_c *ManagerMock_Get_Call) Return(_a0 error) *ManagerMock_Get_Call
func (*ManagerMock_Get_Call) Run ¶
func (_c *ManagerMock_Get_Call) Run(run func(ctx context.Context, key string, value interface{})) *ManagerMock_Get_Call
func (*ManagerMock_Get_Call) RunAndReturn ¶
func (_c *ManagerMock_Get_Call) RunAndReturn(run func(context.Context, string, interface{}) error) *ManagerMock_Get_Call
type ManagerMock_Invalidate_Call ¶
ManagerMock_Invalidate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Invalidate'
func (*ManagerMock_Invalidate_Call) Return ¶
func (_c *ManagerMock_Invalidate_Call) Return(_a0 error) *ManagerMock_Invalidate_Call
func (*ManagerMock_Invalidate_Call) Run ¶
func (_c *ManagerMock_Invalidate_Call) Run(run func(ctx context.Context, keyRegex string)) *ManagerMock_Invalidate_Call
func (*ManagerMock_Invalidate_Call) RunAndReturn ¶
func (_c *ManagerMock_Invalidate_Call) RunAndReturn(run func(context.Context, string) error) *ManagerMock_Invalidate_Call
type ManagerMock_SetWithExpiration_Call ¶
ManagerMock_SetWithExpiration_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetWithExpiration'
func (*ManagerMock_SetWithExpiration_Call) Return ¶
func (_c *ManagerMock_SetWithExpiration_Call) Return(_a0 error) *ManagerMock_SetWithExpiration_Call
func (*ManagerMock_SetWithExpiration_Call) Run ¶
func (_c *ManagerMock_SetWithExpiration_Call) Run(run func(ctx context.Context, key string, value interface{}, expiration time.Duration)) *ManagerMock_SetWithExpiration_Call
func (*ManagerMock_SetWithExpiration_Call) RunAndReturn ¶
func (_c *ManagerMock_SetWithExpiration_Call) RunAndReturn(run func(context.Context, string, interface{}, time.Duration) error) *ManagerMock_SetWithExpiration_Call
type ManagerMock_Set_Call ¶
ManagerMock_Set_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Set'
func (*ManagerMock_Set_Call) Return ¶
func (_c *ManagerMock_Set_Call) Return(_a0 error) *ManagerMock_Set_Call
func (*ManagerMock_Set_Call) Run ¶
func (_c *ManagerMock_Set_Call) Run(run func(ctx context.Context, key string, value interface{})) *ManagerMock_Set_Call
func (*ManagerMock_Set_Call) RunAndReturn ¶
func (_c *ManagerMock_Set_Call) RunAndReturn(run func(context.Context, string, interface{}) error) *ManagerMock_Set_Call