Documentation ¶
Index ¶
- type CacheRepo
- type Controller
- func (_m *Controller) DeleteCacheByPath(paths []model.CachePath) error
- func (_m *Controller) DeleteCacheByTags(tags []string) error
- func (_m *Controller) GetCache(r *http.Request, service string) (model.Cache, error)
- func (_m *Controller) HandleResponse(r *http.Response, params cache.Params) error
- func (_m *Controller) IsCacheableRequest(r *http.Request) bool
- func (_m *Controller) IsCacheableResponse(r *http.Response, params cache.Params) bool
- func (_m *Controller) Start(ctx context.Context)
- type NewCacheRepoT
- type NewControllerT
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheRepo ¶
CacheRepo is an autogenerated mock type for the CacheRepo type
func NewCacheRepo ¶ added in v0.0.12
func NewCacheRepo(t NewCacheRepoT) *CacheRepo
NewCacheRepo creates a new instance of CacheRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*CacheRepo) Create ¶ added in v0.0.11
Create provides a mock function with given fields: cache, serviceKey
func (*CacheRepo) DeleteByPath ¶ added in v0.0.11
DeleteByPath provides a mock function with given fields: paths
func (*CacheRepo) DeleteByTags ¶ added in v0.0.11
DeleteByTags provides a mock function with given fields: tags
type Controller ¶ added in v0.0.11
Controller is an autogenerated mock type for the Controller type
func NewController ¶ added in v0.0.12
func NewController(t NewControllerT) *Controller
NewController creates a new instance of Controller. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Controller) DeleteCacheByPath ¶ added in v0.0.12
func (_m *Controller) DeleteCacheByPath(paths []model.CachePath) error
DeleteCacheByPath provides a mock function with given fields: paths
func (*Controller) DeleteCacheByTags ¶ added in v0.0.12
func (_m *Controller) DeleteCacheByTags(tags []string) error
DeleteCacheByTags provides a mock function with given fields: tags
func (*Controller) GetCache ¶ added in v0.0.12
GetCache provides a mock function with given fields: r, service
func (*Controller) HandleResponse ¶ added in v0.0.12
HandleResponse provides a mock function with given fields: r, params
func (*Controller) IsCacheableRequest ¶ added in v0.0.12
func (_m *Controller) IsCacheableRequest(r *http.Request) bool
IsCacheableRequest provides a mock function with given fields: r
func (*Controller) IsCacheableResponse ¶ added in v0.0.12
IsCacheableResponse provides a mock function with given fields: r, params
func (*Controller) Start ¶ added in v0.0.12
func (_m *Controller) Start(ctx context.Context)
Start provides a mock function with given fields: ctx