mocks

package
v0.0.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheRepo

type CacheRepo struct {
	mock.Mock
}

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

func (_m *CacheRepo) Create(cache model.Cache, serviceKey string) error

Create provides a mock function with given fields: cache, serviceKey

func (*CacheRepo) DeleteByPath added in v0.0.11

func (_m *CacheRepo) DeleteByPath(paths []model.CachePath) error

DeleteByPath provides a mock function with given fields: paths

func (*CacheRepo) DeleteByTags added in v0.0.11

func (_m *CacheRepo) DeleteByTags(tags []string) error

DeleteByTags provides a mock function with given fields: tags

func (*CacheRepo) Get added in v0.0.11

func (_m *CacheRepo) Get(path string, serviceKey string) (model.Cache, error)

Get provides a mock function with given fields: path, serviceKey

type Controller added in v0.0.11

type Controller struct {
	mock.Mock
}

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

func (_m *Controller) GetCache(r *http.Request, service string) (model.Cache, error)

GetCache provides a mock function with given fields: r, service

func (*Controller) HandleResponse added in v0.0.12

func (_m *Controller) HandleResponse(r *http.Response, params cache.Params) error

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

func (_m *Controller) IsCacheableResponse(r *http.Response, params cache.Params) bool

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

type NewCacheRepoT added in v0.0.12

type NewCacheRepoT interface {
	mock.TestingT
	Cleanup(func())
}

type NewControllerT added in v0.0.12

type NewControllerT interface {
	mock.TestingT
	Cleanup(func())
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL