Documentation ¶
Index ¶
- type CacheMock
- func (_m *CacheMock) Delete(key string)
- func (_m *CacheMock) EXPECT() *CacheMock_Expecter
- func (_m *CacheMock) Get(key string) interface{}
- func (_m *CacheMock) Set(key string, value interface{}, ttl time.Duration)
- func (_m *CacheMock) Start(ctx context.Context) error
- func (_m *CacheMock) Stop(ctx context.Context) error
- type CacheMock_Delete_Call
- type CacheMock_Expecter
- func (_e *CacheMock_Expecter) Delete(key interface{}) *CacheMock_Delete_Call
- func (_e *CacheMock_Expecter) Get(key interface{}) *CacheMock_Get_Call
- func (_e *CacheMock_Expecter) Set(key interface{}, value interface{}, ttl interface{}) *CacheMock_Set_Call
- func (_e *CacheMock_Expecter) Start(ctx interface{}) *CacheMock_Start_Call
- func (_e *CacheMock_Expecter) Stop(ctx interface{}) *CacheMock_Stop_Call
- type CacheMock_Get_Call
- type CacheMock_Set_Call
- type CacheMock_Start_Call
- type CacheMock_Stop_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheMock ¶
CacheMock is an autogenerated mock type for the Cache type
func NewCacheMock ¶
func NewCacheMock(t mockConstructorTestingTNewCacheMock) *CacheMock
NewCacheMock creates a new instance of CacheMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*CacheMock) EXPECT ¶
func (_m *CacheMock) EXPECT() *CacheMock_Expecter
type CacheMock_Delete_Call ¶
CacheMock_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*CacheMock_Delete_Call) Return ¶
func (_c *CacheMock_Delete_Call) Return() *CacheMock_Delete_Call
func (*CacheMock_Delete_Call) Run ¶
func (_c *CacheMock_Delete_Call) Run(run func(key string)) *CacheMock_Delete_Call
func (*CacheMock_Delete_Call) RunAndReturn ¶
func (_c *CacheMock_Delete_Call) RunAndReturn(run func(string)) *CacheMock_Delete_Call
type CacheMock_Expecter ¶
type CacheMock_Expecter struct {
// contains filtered or unexported fields
}
func (*CacheMock_Expecter) Delete ¶
func (_e *CacheMock_Expecter) Delete(key interface{}) *CacheMock_Delete_Call
Delete is a helper method to define mock.On call
- key string
func (*CacheMock_Expecter) Get ¶
func (_e *CacheMock_Expecter) Get(key interface{}) *CacheMock_Get_Call
Get is a helper method to define mock.On call
- key string
func (*CacheMock_Expecter) Set ¶
func (_e *CacheMock_Expecter) Set(key interface{}, value interface{}, ttl interface{}) *CacheMock_Set_Call
Set is a helper method to define mock.On call
- key string
- value interface{}
- ttl time.Duration
func (*CacheMock_Expecter) Start ¶
func (_e *CacheMock_Expecter) Start(ctx interface{}) *CacheMock_Start_Call
Start is a helper method to define mock.On call
- ctx context.Context
func (*CacheMock_Expecter) Stop ¶
func (_e *CacheMock_Expecter) Stop(ctx interface{}) *CacheMock_Stop_Call
Stop is a helper method to define mock.On call
- ctx context.Context
type CacheMock_Get_Call ¶
CacheMock_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*CacheMock_Get_Call) Return ¶
func (_c *CacheMock_Get_Call) Return(_a0 interface{}) *CacheMock_Get_Call
func (*CacheMock_Get_Call) Run ¶
func (_c *CacheMock_Get_Call) Run(run func(key string)) *CacheMock_Get_Call
func (*CacheMock_Get_Call) RunAndReturn ¶
func (_c *CacheMock_Get_Call) RunAndReturn(run func(string) interface{}) *CacheMock_Get_Call
type CacheMock_Set_Call ¶
CacheMock_Set_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Set'
func (*CacheMock_Set_Call) Return ¶
func (_c *CacheMock_Set_Call) Return() *CacheMock_Set_Call
func (*CacheMock_Set_Call) Run ¶
func (_c *CacheMock_Set_Call) Run(run func(key string, value interface{}, ttl time.Duration)) *CacheMock_Set_Call
func (*CacheMock_Set_Call) RunAndReturn ¶
func (_c *CacheMock_Set_Call) RunAndReturn(run func(string, interface{}, time.Duration)) *CacheMock_Set_Call
type CacheMock_Start_Call ¶
CacheMock_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*CacheMock_Start_Call) Return ¶
func (_c *CacheMock_Start_Call) Return(_a0 error) *CacheMock_Start_Call
func (*CacheMock_Start_Call) Run ¶
func (_c *CacheMock_Start_Call) Run(run func(ctx context.Context)) *CacheMock_Start_Call
func (*CacheMock_Start_Call) RunAndReturn ¶
func (_c *CacheMock_Start_Call) RunAndReturn(run func(context.Context) error) *CacheMock_Start_Call
type CacheMock_Stop_Call ¶
CacheMock_Stop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stop'
func (*CacheMock_Stop_Call) Return ¶
func (_c *CacheMock_Stop_Call) Return(_a0 error) *CacheMock_Stop_Call
func (*CacheMock_Stop_Call) Run ¶
func (_c *CacheMock_Stop_Call) Run(run func(ctx context.Context)) *CacheMock_Stop_Call
func (*CacheMock_Stop_Call) RunAndReturn ¶
func (_c *CacheMock_Stop_Call) RunAndReturn(run func(context.Context) error) *CacheMock_Stop_Call