route

package
v1.14.2 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GroupFunc

type GroupFunc struct {
	mock.Mock
}

GroupFunc is an autogenerated mock type for the GroupFunc type

func NewGroupFunc

func NewGroupFunc(t interface {
	mock.TestingT
	Cleanup(func())
}) *GroupFunc

NewGroupFunc creates a new instance of GroupFunc. 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 (*GroupFunc) EXPECT

func (_m *GroupFunc) EXPECT() *GroupFunc_Expecter

func (*GroupFunc) Execute

func (_m *GroupFunc) Execute(router route.Router)

Execute provides a mock function with given fields: router

type GroupFunc_Execute_Call

type GroupFunc_Execute_Call struct {
	*mock.Call
}

GroupFunc_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'

func (*GroupFunc_Execute_Call) Return

func (*GroupFunc_Execute_Call) Run

func (_c *GroupFunc_Execute_Call) Run(run func(router route.Router)) *GroupFunc_Execute_Call

func (*GroupFunc_Execute_Call) RunAndReturn

func (_c *GroupFunc_Execute_Call) RunAndReturn(run func(route.Router)) *GroupFunc_Execute_Call

type GroupFunc_Expecter

type GroupFunc_Expecter struct {
	// contains filtered or unexported fields
}

func (*GroupFunc_Expecter) Execute

func (_e *GroupFunc_Expecter) Execute(router interface{}) *GroupFunc_Execute_Call

Execute is a helper method to define mock.On call

  • router route.Router

type Route

type Route struct {
	mock.Mock
}

Route is an autogenerated mock type for the Route type

func NewRoute

func NewRoute(t interface {
	mock.TestingT
	Cleanup(func())
}) *Route

NewRoute creates a new instance of Route. 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 (*Route) Any

func (_m *Route) Any(relativePath string, handler http.HandlerFunc)

Any provides a mock function with given fields: relativePath, handler

func (*Route) Delete

func (_m *Route) Delete(relativePath string, handler http.HandlerFunc)

Delete provides a mock function with given fields: relativePath, handler

func (*Route) EXPECT

func (_m *Route) EXPECT() *Route_Expecter

func (*Route) Fallback

func (_m *Route) Fallback(handler http.HandlerFunc)

Fallback provides a mock function with given fields: handler

func (*Route) Get

func (_m *Route) Get(relativePath string, handler http.HandlerFunc)

Get provides a mock function with given fields: relativePath, handler

func (*Route) GlobalMiddleware

func (_m *Route) GlobalMiddleware(middlewares ...http.Middleware)

GlobalMiddleware provides a mock function with given fields: middlewares

func (*Route) Group

func (_m *Route) Group(handler route.GroupFunc)

Group provides a mock function with given fields: handler

func (*Route) Middleware

func (_m *Route) Middleware(middlewares ...http.Middleware) route.Router

Middleware provides a mock function with given fields: middlewares

func (*Route) Options

func (_m *Route) Options(relativePath string, handler http.HandlerFunc)

Options provides a mock function with given fields: relativePath, handler

func (*Route) Patch

func (_m *Route) Patch(relativePath string, handler http.HandlerFunc)

Patch provides a mock function with given fields: relativePath, handler

func (*Route) Post

func (_m *Route) Post(relativePath string, handler http.HandlerFunc)

Post provides a mock function with given fields: relativePath, handler

func (*Route) Prefix

func (_m *Route) Prefix(addr string) route.Router

Prefix provides a mock function with given fields: addr

func (*Route) Put

func (_m *Route) Put(relativePath string, handler http.HandlerFunc)

Put provides a mock function with given fields: relativePath, handler

func (*Route) Resource

func (_m *Route) Resource(relativePath string, controller http.ResourceController)

Resource provides a mock function with given fields: relativePath, controller

func (*Route) Run

func (_m *Route) Run(host ...string) error

Run provides a mock function with given fields: host

func (*Route) RunTLS

func (_m *Route) RunTLS(host ...string) error

RunTLS provides a mock function with given fields: host

func (*Route) RunTLSWithCert

func (_m *Route) RunTLSWithCert(host string, certFile string, keyFile string) error

RunTLSWithCert provides a mock function with given fields: host, certFile, keyFile

func (*Route) ServeHTTP

func (_m *Route) ServeHTTP(writer nethttp.ResponseWriter, request *nethttp.Request)

ServeHTTP provides a mock function with given fields: writer, request

func (*Route) Static

func (_m *Route) Static(relativePath string, root string)

Static provides a mock function with given fields: relativePath, root

func (*Route) StaticFS

func (_m *Route) StaticFS(relativePath string, fs nethttp.FileSystem)

StaticFS provides a mock function with given fields: relativePath, fs

func (*Route) StaticFile

func (_m *Route) StaticFile(relativePath string, filepath string)

StaticFile provides a mock function with given fields: relativePath, filepath

type Route_Any_Call

type Route_Any_Call struct {
	*mock.Call
}

Route_Any_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Any'

func (*Route_Any_Call) Return

func (_c *Route_Any_Call) Return() *Route_Any_Call

func (*Route_Any_Call) Run

func (_c *Route_Any_Call) Run(run func(relativePath string, handler http.HandlerFunc)) *Route_Any_Call

func (*Route_Any_Call) RunAndReturn

func (_c *Route_Any_Call) RunAndReturn(run func(string, http.HandlerFunc)) *Route_Any_Call

type Route_Delete_Call

type Route_Delete_Call struct {
	*mock.Call
}

Route_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*Route_Delete_Call) Return

func (_c *Route_Delete_Call) Return() *Route_Delete_Call

func (*Route_Delete_Call) Run

func (_c *Route_Delete_Call) Run(run func(relativePath string, handler http.HandlerFunc)) *Route_Delete_Call

func (*Route_Delete_Call) RunAndReturn

func (_c *Route_Delete_Call) RunAndReturn(run func(string, http.HandlerFunc)) *Route_Delete_Call

type Route_Expecter

type Route_Expecter struct {
	// contains filtered or unexported fields
}

func (*Route_Expecter) Any

func (_e *Route_Expecter) Any(relativePath interface{}, handler interface{}) *Route_Any_Call

Any is a helper method to define mock.On call

  • relativePath string
  • handler http.HandlerFunc

func (*Route_Expecter) Delete

func (_e *Route_Expecter) Delete(relativePath interface{}, handler interface{}) *Route_Delete_Call

Delete is a helper method to define mock.On call

  • relativePath string
  • handler http.HandlerFunc

func (*Route_Expecter) Fallback

func (_e *Route_Expecter) Fallback(handler interface{}) *Route_Fallback_Call

Fallback is a helper method to define mock.On call

  • handler http.HandlerFunc

func (*Route_Expecter) Get

func (_e *Route_Expecter) Get(relativePath interface{}, handler interface{}) *Route_Get_Call

Get is a helper method to define mock.On call

  • relativePath string
  • handler http.HandlerFunc

func (*Route_Expecter) GlobalMiddleware

func (_e *Route_Expecter) GlobalMiddleware(middlewares ...interface{}) *Route_GlobalMiddleware_Call

GlobalMiddleware is a helper method to define mock.On call

  • middlewares ...http.Middleware

func (*Route_Expecter) Group

func (_e *Route_Expecter) Group(handler interface{}) *Route_Group_Call

Group is a helper method to define mock.On call

  • handler route.GroupFunc

func (*Route_Expecter) Middleware

func (_e *Route_Expecter) Middleware(middlewares ...interface{}) *Route_Middleware_Call

Middleware is a helper method to define mock.On call

  • middlewares ...http.Middleware

func (*Route_Expecter) Options

func (_e *Route_Expecter) Options(relativePath interface{}, handler interface{}) *Route_Options_Call

Options is a helper method to define mock.On call

  • relativePath string
  • handler http.HandlerFunc

func (*Route_Expecter) Patch

func (_e *Route_Expecter) Patch(relativePath interface{}, handler interface{}) *Route_Patch_Call

Patch is a helper method to define mock.On call

  • relativePath string
  • handler http.HandlerFunc

func (*Route_Expecter) Post

func (_e *Route_Expecter) Post(relativePath interface{}, handler interface{}) *Route_Post_Call

Post is a helper method to define mock.On call

  • relativePath string
  • handler http.HandlerFunc

func (*Route_Expecter) Prefix

func (_e *Route_Expecter) Prefix(addr interface{}) *Route_Prefix_Call

Prefix is a helper method to define mock.On call

  • addr string

func (*Route_Expecter) Put

func (_e *Route_Expecter) Put(relativePath interface{}, handler interface{}) *Route_Put_Call

Put is a helper method to define mock.On call

  • relativePath string
  • handler http.HandlerFunc

func (*Route_Expecter) Resource

func (_e *Route_Expecter) Resource(relativePath interface{}, controller interface{}) *Route_Resource_Call

Resource is a helper method to define mock.On call

  • relativePath string
  • controller http.ResourceController

func (*Route_Expecter) Run

func (_e *Route_Expecter) Run(host ...interface{}) *Route_Run_Call

Run is a helper method to define mock.On call

  • host ...string

func (*Route_Expecter) RunTLS

func (_e *Route_Expecter) RunTLS(host ...interface{}) *Route_RunTLS_Call

RunTLS is a helper method to define mock.On call

  • host ...string

func (*Route_Expecter) RunTLSWithCert

func (_e *Route_Expecter) RunTLSWithCert(host interface{}, certFile interface{}, keyFile interface{}) *Route_RunTLSWithCert_Call

RunTLSWithCert is a helper method to define mock.On call

  • host string
  • certFile string
  • keyFile string

func (*Route_Expecter) ServeHTTP

func (_e *Route_Expecter) ServeHTTP(writer interface{}, request interface{}) *Route_ServeHTTP_Call

ServeHTTP is a helper method to define mock.On call

  • writer nethttp.ResponseWriter
  • request *nethttp.Request

func (*Route_Expecter) Static

func (_e *Route_Expecter) Static(relativePath interface{}, root interface{}) *Route_Static_Call

Static is a helper method to define mock.On call

  • relativePath string
  • root string

func (*Route_Expecter) StaticFS

func (_e *Route_Expecter) StaticFS(relativePath interface{}, fs interface{}) *Route_StaticFS_Call

StaticFS is a helper method to define mock.On call

  • relativePath string
  • fs nethttp.FileSystem

func (*Route_Expecter) StaticFile

func (_e *Route_Expecter) StaticFile(relativePath interface{}, filepath interface{}) *Route_StaticFile_Call

StaticFile is a helper method to define mock.On call

  • relativePath string
  • filepath string

type Route_Fallback_Call

type Route_Fallback_Call struct {
	*mock.Call
}

Route_Fallback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Fallback'

func (*Route_Fallback_Call) Return

func (*Route_Fallback_Call) Run

func (_c *Route_Fallback_Call) Run(run func(handler http.HandlerFunc)) *Route_Fallback_Call

func (*Route_Fallback_Call) RunAndReturn

func (_c *Route_Fallback_Call) RunAndReturn(run func(http.HandlerFunc)) *Route_Fallback_Call

type Route_Get_Call

type Route_Get_Call struct {
	*mock.Call
}

Route_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*Route_Get_Call) Return

func (_c *Route_Get_Call) Return() *Route_Get_Call

func (*Route_Get_Call) Run

func (_c *Route_Get_Call) Run(run func(relativePath string, handler http.HandlerFunc)) *Route_Get_Call

func (*Route_Get_Call) RunAndReturn

func (_c *Route_Get_Call) RunAndReturn(run func(string, http.HandlerFunc)) *Route_Get_Call

type Route_GlobalMiddleware_Call

type Route_GlobalMiddleware_Call struct {
	*mock.Call
}

Route_GlobalMiddleware_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GlobalMiddleware'

func (*Route_GlobalMiddleware_Call) Return

func (*Route_GlobalMiddleware_Call) Run

func (_c *Route_GlobalMiddleware_Call) Run(run func(middlewares ...http.Middleware)) *Route_GlobalMiddleware_Call

func (*Route_GlobalMiddleware_Call) RunAndReturn

type Route_Group_Call

type Route_Group_Call struct {
	*mock.Call
}

Route_Group_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Group'

func (*Route_Group_Call) Return

func (_c *Route_Group_Call) Return() *Route_Group_Call

func (*Route_Group_Call) Run

func (_c *Route_Group_Call) Run(run func(handler route.GroupFunc)) *Route_Group_Call

func (*Route_Group_Call) RunAndReturn

func (_c *Route_Group_Call) RunAndReturn(run func(route.GroupFunc)) *Route_Group_Call

type Route_Middleware_Call

type Route_Middleware_Call struct {
	*mock.Call
}

Route_Middleware_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Middleware'

func (*Route_Middleware_Call) Return

func (*Route_Middleware_Call) Run

func (_c *Route_Middleware_Call) Run(run func(middlewares ...http.Middleware)) *Route_Middleware_Call

func (*Route_Middleware_Call) RunAndReturn

func (_c *Route_Middleware_Call) RunAndReturn(run func(...http.Middleware) route.Router) *Route_Middleware_Call

type Route_Options_Call

type Route_Options_Call struct {
	*mock.Call
}

Route_Options_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Options'

func (*Route_Options_Call) Return

func (_c *Route_Options_Call) Return() *Route_Options_Call

func (*Route_Options_Call) Run

func (_c *Route_Options_Call) Run(run func(relativePath string, handler http.HandlerFunc)) *Route_Options_Call

func (*Route_Options_Call) RunAndReturn

func (_c *Route_Options_Call) RunAndReturn(run func(string, http.HandlerFunc)) *Route_Options_Call

type Route_Patch_Call

type Route_Patch_Call struct {
	*mock.Call
}

Route_Patch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Patch'

func (*Route_Patch_Call) Return

func (_c *Route_Patch_Call) Return() *Route_Patch_Call

func (*Route_Patch_Call) Run

func (_c *Route_Patch_Call) Run(run func(relativePath string, handler http.HandlerFunc)) *Route_Patch_Call

func (*Route_Patch_Call) RunAndReturn

func (_c *Route_Patch_Call) RunAndReturn(run func(string, http.HandlerFunc)) *Route_Patch_Call

type Route_Post_Call

type Route_Post_Call struct {
	*mock.Call
}

Route_Post_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Post'

func (*Route_Post_Call) Return

func (_c *Route_Post_Call) Return() *Route_Post_Call

func (*Route_Post_Call) Run

func (_c *Route_Post_Call) Run(run func(relativePath string, handler http.HandlerFunc)) *Route_Post_Call

func (*Route_Post_Call) RunAndReturn

func (_c *Route_Post_Call) RunAndReturn(run func(string, http.HandlerFunc)) *Route_Post_Call

type Route_Prefix_Call

type Route_Prefix_Call struct {
	*mock.Call
}

Route_Prefix_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Prefix'

func (*Route_Prefix_Call) Return

func (*Route_Prefix_Call) Run

func (_c *Route_Prefix_Call) Run(run func(addr string)) *Route_Prefix_Call

func (*Route_Prefix_Call) RunAndReturn

func (_c *Route_Prefix_Call) RunAndReturn(run func(string) route.Router) *Route_Prefix_Call

type Route_Put_Call

type Route_Put_Call struct {
	*mock.Call
}

Route_Put_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Put'

func (*Route_Put_Call) Return

func (_c *Route_Put_Call) Return() *Route_Put_Call

func (*Route_Put_Call) Run

func (_c *Route_Put_Call) Run(run func(relativePath string, handler http.HandlerFunc)) *Route_Put_Call

func (*Route_Put_Call) RunAndReturn

func (_c *Route_Put_Call) RunAndReturn(run func(string, http.HandlerFunc)) *Route_Put_Call

type Route_Resource_Call

type Route_Resource_Call struct {
	*mock.Call
}

Route_Resource_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Resource'

func (*Route_Resource_Call) Return

func (*Route_Resource_Call) Run

func (_c *Route_Resource_Call) Run(run func(relativePath string, controller http.ResourceController)) *Route_Resource_Call

func (*Route_Resource_Call) RunAndReturn

type Route_RunTLSWithCert_Call

type Route_RunTLSWithCert_Call struct {
	*mock.Call
}

Route_RunTLSWithCert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RunTLSWithCert'

func (*Route_RunTLSWithCert_Call) Return

func (*Route_RunTLSWithCert_Call) Run

func (_c *Route_RunTLSWithCert_Call) Run(run func(host string, certFile string, keyFile string)) *Route_RunTLSWithCert_Call

func (*Route_RunTLSWithCert_Call) RunAndReturn

type Route_RunTLS_Call

type Route_RunTLS_Call struct {
	*mock.Call
}

Route_RunTLS_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RunTLS'

func (*Route_RunTLS_Call) Return

func (_c *Route_RunTLS_Call) Return(_a0 error) *Route_RunTLS_Call

func (*Route_RunTLS_Call) Run

func (_c *Route_RunTLS_Call) Run(run func(host ...string)) *Route_RunTLS_Call

func (*Route_RunTLS_Call) RunAndReturn

func (_c *Route_RunTLS_Call) RunAndReturn(run func(...string) error) *Route_RunTLS_Call

type Route_Run_Call

type Route_Run_Call struct {
	*mock.Call
}

Route_Run_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Run'

func (*Route_Run_Call) Return

func (_c *Route_Run_Call) Return(_a0 error) *Route_Run_Call

func (*Route_Run_Call) Run

func (_c *Route_Run_Call) Run(run func(host ...string)) *Route_Run_Call

func (*Route_Run_Call) RunAndReturn

func (_c *Route_Run_Call) RunAndReturn(run func(...string) error) *Route_Run_Call

type Route_ServeHTTP_Call

type Route_ServeHTTP_Call struct {
	*mock.Call
}

Route_ServeHTTP_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ServeHTTP'

func (*Route_ServeHTTP_Call) Return

func (*Route_ServeHTTP_Call) Run

func (_c *Route_ServeHTTP_Call) Run(run func(writer nethttp.ResponseWriter, request *nethttp.Request)) *Route_ServeHTTP_Call

func (*Route_ServeHTTP_Call) RunAndReturn

type Route_StaticFS_Call

type Route_StaticFS_Call struct {
	*mock.Call
}

Route_StaticFS_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StaticFS'

func (*Route_StaticFS_Call) Return

func (*Route_StaticFS_Call) Run

func (_c *Route_StaticFS_Call) Run(run func(relativePath string, fs nethttp.FileSystem)) *Route_StaticFS_Call

func (*Route_StaticFS_Call) RunAndReturn

func (_c *Route_StaticFS_Call) RunAndReturn(run func(string, nethttp.FileSystem)) *Route_StaticFS_Call

type Route_StaticFile_Call

type Route_StaticFile_Call struct {
	*mock.Call
}

Route_StaticFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StaticFile'

func (*Route_StaticFile_Call) Return

func (*Route_StaticFile_Call) Run

func (_c *Route_StaticFile_Call) Run(run func(relativePath string, filepath string)) *Route_StaticFile_Call

func (*Route_StaticFile_Call) RunAndReturn

func (_c *Route_StaticFile_Call) RunAndReturn(run func(string, string)) *Route_StaticFile_Call

type Route_Static_Call

type Route_Static_Call struct {
	*mock.Call
}

Route_Static_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Static'

func (*Route_Static_Call) Return

func (_c *Route_Static_Call) Return() *Route_Static_Call

func (*Route_Static_Call) Run

func (_c *Route_Static_Call) Run(run func(relativePath string, root string)) *Route_Static_Call

func (*Route_Static_Call) RunAndReturn

func (_c *Route_Static_Call) RunAndReturn(run func(string, string)) *Route_Static_Call

type Router

type Router struct {
	mock.Mock
}

Router is an autogenerated mock type for the Router type

func NewRouter

func NewRouter(t interface {
	mock.TestingT
	Cleanup(func())
}) *Router

NewRouter creates a new instance of Router. 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 (*Router) Any

func (_m *Router) Any(relativePath string, handler http.HandlerFunc)

Any provides a mock function with given fields: relativePath, handler

func (*Router) Delete

func (_m *Router) Delete(relativePath string, handler http.HandlerFunc)

Delete provides a mock function with given fields: relativePath, handler

func (*Router) EXPECT

func (_m *Router) EXPECT() *Router_Expecter

func (*Router) Get

func (_m *Router) Get(relativePath string, handler http.HandlerFunc)

Get provides a mock function with given fields: relativePath, handler

func (*Router) Group

func (_m *Router) Group(handler route.GroupFunc)

Group provides a mock function with given fields: handler

func (*Router) Middleware

func (_m *Router) Middleware(middlewares ...http.Middleware) route.Router

Middleware provides a mock function with given fields: middlewares

func (*Router) Options

func (_m *Router) Options(relativePath string, handler http.HandlerFunc)

Options provides a mock function with given fields: relativePath, handler

func (*Router) Patch

func (_m *Router) Patch(relativePath string, handler http.HandlerFunc)

Patch provides a mock function with given fields: relativePath, handler

func (*Router) Post

func (_m *Router) Post(relativePath string, handler http.HandlerFunc)

Post provides a mock function with given fields: relativePath, handler

func (*Router) Prefix

func (_m *Router) Prefix(addr string) route.Router

Prefix provides a mock function with given fields: addr

func (*Router) Put

func (_m *Router) Put(relativePath string, handler http.HandlerFunc)

Put provides a mock function with given fields: relativePath, handler

func (*Router) Resource

func (_m *Router) Resource(relativePath string, controller http.ResourceController)

Resource provides a mock function with given fields: relativePath, controller

func (*Router) Static

func (_m *Router) Static(relativePath string, root string)

Static provides a mock function with given fields: relativePath, root

func (*Router) StaticFS

func (_m *Router) StaticFS(relativePath string, fs nethttp.FileSystem)

StaticFS provides a mock function with given fields: relativePath, fs

func (*Router) StaticFile

func (_m *Router) StaticFile(relativePath string, filepath string)

StaticFile provides a mock function with given fields: relativePath, filepath

type Router_Any_Call

type Router_Any_Call struct {
	*mock.Call
}

Router_Any_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Any'

func (*Router_Any_Call) Return

func (_c *Router_Any_Call) Return() *Router_Any_Call

func (*Router_Any_Call) Run

func (_c *Router_Any_Call) Run(run func(relativePath string, handler http.HandlerFunc)) *Router_Any_Call

func (*Router_Any_Call) RunAndReturn

func (_c *Router_Any_Call) RunAndReturn(run func(string, http.HandlerFunc)) *Router_Any_Call

type Router_Delete_Call

type Router_Delete_Call struct {
	*mock.Call
}

Router_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*Router_Delete_Call) Return

func (_c *Router_Delete_Call) Return() *Router_Delete_Call

func (*Router_Delete_Call) Run

func (_c *Router_Delete_Call) Run(run func(relativePath string, handler http.HandlerFunc)) *Router_Delete_Call

func (*Router_Delete_Call) RunAndReturn

func (_c *Router_Delete_Call) RunAndReturn(run func(string, http.HandlerFunc)) *Router_Delete_Call

type Router_Expecter

type Router_Expecter struct {
	// contains filtered or unexported fields
}

func (*Router_Expecter) Any

func (_e *Router_Expecter) Any(relativePath interface{}, handler interface{}) *Router_Any_Call

Any is a helper method to define mock.On call

  • relativePath string
  • handler http.HandlerFunc

func (*Router_Expecter) Delete

func (_e *Router_Expecter) Delete(relativePath interface{}, handler interface{}) *Router_Delete_Call

Delete is a helper method to define mock.On call

  • relativePath string
  • handler http.HandlerFunc

func (*Router_Expecter) Get

func (_e *Router_Expecter) Get(relativePath interface{}, handler interface{}) *Router_Get_Call

Get is a helper method to define mock.On call

  • relativePath string
  • handler http.HandlerFunc

func (*Router_Expecter) Group

func (_e *Router_Expecter) Group(handler interface{}) *Router_Group_Call

Group is a helper method to define mock.On call

  • handler route.GroupFunc

func (*Router_Expecter) Middleware

func (_e *Router_Expecter) Middleware(middlewares ...interface{}) *Router_Middleware_Call

Middleware is a helper method to define mock.On call

  • middlewares ...http.Middleware

func (*Router_Expecter) Options

func (_e *Router_Expecter) Options(relativePath interface{}, handler interface{}) *Router_Options_Call

Options is a helper method to define mock.On call

  • relativePath string
  • handler http.HandlerFunc

func (*Router_Expecter) Patch

func (_e *Router_Expecter) Patch(relativePath interface{}, handler interface{}) *Router_Patch_Call

Patch is a helper method to define mock.On call

  • relativePath string
  • handler http.HandlerFunc

func (*Router_Expecter) Post

func (_e *Router_Expecter) Post(relativePath interface{}, handler interface{}) *Router_Post_Call

Post is a helper method to define mock.On call

  • relativePath string
  • handler http.HandlerFunc

func (*Router_Expecter) Prefix

func (_e *Router_Expecter) Prefix(addr interface{}) *Router_Prefix_Call

Prefix is a helper method to define mock.On call

  • addr string

func (*Router_Expecter) Put

func (_e *Router_Expecter) Put(relativePath interface{}, handler interface{}) *Router_Put_Call

Put is a helper method to define mock.On call

  • relativePath string
  • handler http.HandlerFunc

func (*Router_Expecter) Resource

func (_e *Router_Expecter) Resource(relativePath interface{}, controller interface{}) *Router_Resource_Call

Resource is a helper method to define mock.On call

  • relativePath string
  • controller http.ResourceController

func (*Router_Expecter) Static

func (_e *Router_Expecter) Static(relativePath interface{}, root interface{}) *Router_Static_Call

Static is a helper method to define mock.On call

  • relativePath string
  • root string

func (*Router_Expecter) StaticFS

func (_e *Router_Expecter) StaticFS(relativePath interface{}, fs interface{}) *Router_StaticFS_Call

StaticFS is a helper method to define mock.On call

  • relativePath string
  • fs nethttp.FileSystem

func (*Router_Expecter) StaticFile

func (_e *Router_Expecter) StaticFile(relativePath interface{}, filepath interface{}) *Router_StaticFile_Call

StaticFile is a helper method to define mock.On call

  • relativePath string
  • filepath string

type Router_Get_Call

type Router_Get_Call struct {
	*mock.Call
}

Router_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*Router_Get_Call) Return

func (_c *Router_Get_Call) Return() *Router_Get_Call

func (*Router_Get_Call) Run

func (_c *Router_Get_Call) Run(run func(relativePath string, handler http.HandlerFunc)) *Router_Get_Call

func (*Router_Get_Call) RunAndReturn

func (_c *Router_Get_Call) RunAndReturn(run func(string, http.HandlerFunc)) *Router_Get_Call

type Router_Group_Call

type Router_Group_Call struct {
	*mock.Call
}

Router_Group_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Group'

func (*Router_Group_Call) Return

func (_c *Router_Group_Call) Return() *Router_Group_Call

func (*Router_Group_Call) Run

func (_c *Router_Group_Call) Run(run func(handler route.GroupFunc)) *Router_Group_Call

func (*Router_Group_Call) RunAndReturn

func (_c *Router_Group_Call) RunAndReturn(run func(route.GroupFunc)) *Router_Group_Call

type Router_Middleware_Call

type Router_Middleware_Call struct {
	*mock.Call
}

Router_Middleware_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Middleware'

func (*Router_Middleware_Call) Return

func (*Router_Middleware_Call) Run

func (_c *Router_Middleware_Call) Run(run func(middlewares ...http.Middleware)) *Router_Middleware_Call

func (*Router_Middleware_Call) RunAndReturn

func (_c *Router_Middleware_Call) RunAndReturn(run func(...http.Middleware) route.Router) *Router_Middleware_Call

type Router_Options_Call

type Router_Options_Call struct {
	*mock.Call
}

Router_Options_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Options'

func (*Router_Options_Call) Return

func (*Router_Options_Call) Run

func (_c *Router_Options_Call) Run(run func(relativePath string, handler http.HandlerFunc)) *Router_Options_Call

func (*Router_Options_Call) RunAndReturn

func (_c *Router_Options_Call) RunAndReturn(run func(string, http.HandlerFunc)) *Router_Options_Call

type Router_Patch_Call

type Router_Patch_Call struct {
	*mock.Call
}

Router_Patch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Patch'

func (*Router_Patch_Call) Return

func (_c *Router_Patch_Call) Return() *Router_Patch_Call

func (*Router_Patch_Call) Run

func (_c *Router_Patch_Call) Run(run func(relativePath string, handler http.HandlerFunc)) *Router_Patch_Call

func (*Router_Patch_Call) RunAndReturn

func (_c *Router_Patch_Call) RunAndReturn(run func(string, http.HandlerFunc)) *Router_Patch_Call

type Router_Post_Call

type Router_Post_Call struct {
	*mock.Call
}

Router_Post_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Post'

func (*Router_Post_Call) Return

func (_c *Router_Post_Call) Return() *Router_Post_Call

func (*Router_Post_Call) Run

func (_c *Router_Post_Call) Run(run func(relativePath string, handler http.HandlerFunc)) *Router_Post_Call

func (*Router_Post_Call) RunAndReturn

func (_c *Router_Post_Call) RunAndReturn(run func(string, http.HandlerFunc)) *Router_Post_Call

type Router_Prefix_Call

type Router_Prefix_Call struct {
	*mock.Call
}

Router_Prefix_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Prefix'

func (*Router_Prefix_Call) Return

func (*Router_Prefix_Call) Run

func (_c *Router_Prefix_Call) Run(run func(addr string)) *Router_Prefix_Call

func (*Router_Prefix_Call) RunAndReturn

func (_c *Router_Prefix_Call) RunAndReturn(run func(string) route.Router) *Router_Prefix_Call

type Router_Put_Call

type Router_Put_Call struct {
	*mock.Call
}

Router_Put_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Put'

func (*Router_Put_Call) Return

func (_c *Router_Put_Call) Return() *Router_Put_Call

func (*Router_Put_Call) Run

func (_c *Router_Put_Call) Run(run func(relativePath string, handler http.HandlerFunc)) *Router_Put_Call

func (*Router_Put_Call) RunAndReturn

func (_c *Router_Put_Call) RunAndReturn(run func(string, http.HandlerFunc)) *Router_Put_Call

type Router_Resource_Call

type Router_Resource_Call struct {
	*mock.Call
}

Router_Resource_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Resource'

func (*Router_Resource_Call) Return

func (*Router_Resource_Call) Run

func (_c *Router_Resource_Call) Run(run func(relativePath string, controller http.ResourceController)) *Router_Resource_Call

func (*Router_Resource_Call) RunAndReturn

type Router_StaticFS_Call

type Router_StaticFS_Call struct {
	*mock.Call
}

Router_StaticFS_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StaticFS'

func (*Router_StaticFS_Call) Return

func (*Router_StaticFS_Call) Run

func (_c *Router_StaticFS_Call) Run(run func(relativePath string, fs nethttp.FileSystem)) *Router_StaticFS_Call

func (*Router_StaticFS_Call) RunAndReturn

func (_c *Router_StaticFS_Call) RunAndReturn(run func(string, nethttp.FileSystem)) *Router_StaticFS_Call

type Router_StaticFile_Call

type Router_StaticFile_Call struct {
	*mock.Call
}

Router_StaticFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StaticFile'

func (*Router_StaticFile_Call) Return

func (*Router_StaticFile_Call) Run

func (_c *Router_StaticFile_Call) Run(run func(relativePath string, filepath string)) *Router_StaticFile_Call

func (*Router_StaticFile_Call) RunAndReturn

func (_c *Router_StaticFile_Call) RunAndReturn(run func(string, string)) *Router_StaticFile_Call

type Router_Static_Call

type Router_Static_Call struct {
	*mock.Call
}

Router_Static_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Static'

func (*Router_Static_Call) Return

func (_c *Router_Static_Call) Return() *Router_Static_Call

func (*Router_Static_Call) Run

func (_c *Router_Static_Call) Run(run func(relativePath string, root string)) *Router_Static_Call

func (*Router_Static_Call) RunAndReturn

func (_c *Router_Static_Call) RunAndReturn(run func(string, string)) *Router_Static_Call

Jump to

Keyboard shortcuts

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