Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
Backend is an autogenerated mock type for the Backend type
func NewBackend ¶
NewBackend creates a new instance of Backend. 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 (*Backend) EXPECT ¶
func (_m *Backend) EXPECT() *Backend_Expecter
type Backend_Expecter ¶
type Backend_Expecter struct {
// contains filtered or unexported fields
}
func (*Backend_Expecter) Flush ¶
func (_e *Backend_Expecter) Flush() *Backend_Flush_Call
Flush is a helper method to define mock.On call
func (*Backend_Expecter) Get ¶
func (_e *Backend_Expecter) Get(key interface{}) *Backend_Get_Call
Get is a helper method to define mock.On call
- key string
func (*Backend_Expecter) Purge ¶
func (_e *Backend_Expecter) Purge(key interface{}) *Backend_Purge_Call
Purge is a helper method to define mock.On call
- key string
func (*Backend_Expecter) Set ¶
func (_e *Backend_Expecter) Set(key interface{}, entry interface{}) *Backend_Set_Call
Set is a helper method to define mock.On call
- key string
- entry httpcache.Entry
type Backend_Flush_Call ¶
Backend_Flush_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Flush'
func (*Backend_Flush_Call) Return ¶
func (_c *Backend_Flush_Call) Return(_a0 error) *Backend_Flush_Call
func (*Backend_Flush_Call) Run ¶
func (_c *Backend_Flush_Call) Run(run func()) *Backend_Flush_Call
func (*Backend_Flush_Call) RunAndReturn ¶
func (_c *Backend_Flush_Call) RunAndReturn(run func() error) *Backend_Flush_Call
type Backend_Get_Call ¶
Backend_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*Backend_Get_Call) Return ¶
func (_c *Backend_Get_Call) Return(_a0 httpcache.Entry, _a1 bool) *Backend_Get_Call
func (*Backend_Get_Call) Run ¶
func (_c *Backend_Get_Call) Run(run func(key string)) *Backend_Get_Call
func (*Backend_Get_Call) RunAndReturn ¶
func (_c *Backend_Get_Call) RunAndReturn(run func(string) (httpcache.Entry, bool)) *Backend_Get_Call
type Backend_Purge_Call ¶
Backend_Purge_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Purge'
func (*Backend_Purge_Call) Return ¶
func (_c *Backend_Purge_Call) Return(_a0 error) *Backend_Purge_Call
func (*Backend_Purge_Call) Run ¶
func (_c *Backend_Purge_Call) Run(run func(key string)) *Backend_Purge_Call
func (*Backend_Purge_Call) RunAndReturn ¶
func (_c *Backend_Purge_Call) RunAndReturn(run func(string) error) *Backend_Purge_Call
type Backend_Set_Call ¶
Backend_Set_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Set'
func (*Backend_Set_Call) Return ¶
func (_c *Backend_Set_Call) Return(_a0 error) *Backend_Set_Call
func (*Backend_Set_Call) Run ¶
func (_c *Backend_Set_Call) Run(run func(key string, entry httpcache.Entry)) *Backend_Set_Call
func (*Backend_Set_Call) RunAndReturn ¶
func (_c *Backend_Set_Call) RunAndReturn(run func(string, httpcache.Entry) error) *Backend_Set_Call
type TagSupporting ¶
TagSupporting is an autogenerated mock type for the TagSupporting type
func NewTagSupporting ¶
func NewTagSupporting(t interface { mock.TestingT Cleanup(func()) }) *TagSupporting
NewTagSupporting creates a new instance of TagSupporting. 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 (*TagSupporting) EXPECT ¶
func (_m *TagSupporting) EXPECT() *TagSupporting_Expecter
func (*TagSupporting) PurgeTags ¶
func (_m *TagSupporting) PurgeTags(tags []string) error
PurgeTags provides a mock function with given fields: tags
type TagSupporting_Expecter ¶
type TagSupporting_Expecter struct {
// contains filtered or unexported fields
}
func (*TagSupporting_Expecter) PurgeTags ¶
func (_e *TagSupporting_Expecter) PurgeTags(tags interface{}) *TagSupporting_PurgeTags_Call
PurgeTags is a helper method to define mock.On call
- tags []string
type TagSupporting_PurgeTags_Call ¶
TagSupporting_PurgeTags_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PurgeTags'
func (*TagSupporting_PurgeTags_Call) Return ¶
func (_c *TagSupporting_PurgeTags_Call) Return(_a0 error) *TagSupporting_PurgeTags_Call
func (*TagSupporting_PurgeTags_Call) Run ¶
func (_c *TagSupporting_PurgeTags_Call) Run(run func(tags []string)) *TagSupporting_PurgeTags_Call
func (*TagSupporting_PurgeTags_Call) RunAndReturn ¶
func (_c *TagSupporting_PurgeTags_Call) RunAndReturn(run func([]string) error) *TagSupporting_PurgeTags_Call