Documentation
¶
Index ¶
- type Action
- type Action_Expecter
- type Action_Name_Call
- type GroupFunc
- type GroupFunc_Execute_Call
- type GroupFunc_Expecter
- type Route
- func (_m *Route) Any(path string, handler http.HandlerFunc) route.Action
- func (_m *Route) Delete(path string, handler http.HandlerFunc) route.Action
- func (_m *Route) EXPECT() *Route_Expecter
- func (_m *Route) Fallback(handler http.HandlerFunc)
- func (_m *Route) Get(path string, handler http.HandlerFunc) route.Action
- func (_m *Route) GetRoutes() []http.Info
- func (_m *Route) GlobalMiddleware(middlewares ...http.Middleware)
- func (_m *Route) Group(handler route.GroupFunc)
- func (_m *Route) Info(name string) http.Info
- func (_m *Route) Listen(l net.Listener) error
- func (_m *Route) ListenTLS(l net.Listener) error
- func (_m *Route) ListenTLSWithCert(l net.Listener, certFile string, keyFile string) error
- func (_m *Route) Middleware(middlewares ...http.Middleware) route.Router
- func (_m *Route) Options(path string, handler http.HandlerFunc) route.Action
- func (_m *Route) Patch(path string, handler http.HandlerFunc) route.Action
- func (_m *Route) Post(path string, handler http.HandlerFunc) route.Action
- func (_m *Route) Prefix(path string) route.Router
- func (_m *Route) Put(path string, handler http.HandlerFunc) route.Action
- func (_m *Route) Recover(recoverFunc func(http.Context, interface{}))
- func (_m *Route) Resource(path string, controller http.ResourceController) route.Action
- func (_m *Route) Run(host ...string) error
- func (_m *Route) RunTLS(host ...string) error
- func (_m *Route) RunTLSWithCert(host string, certFile string, keyFile string) error
- func (_m *Route) ServeHTTP(writer nethttp.ResponseWriter, request *nethttp.Request)
- func (_m *Route) Shutdown(ctx ...context.Context) error
- func (_m *Route) Static(path string, root string) route.Action
- func (_m *Route) StaticFS(path string, fs nethttp.FileSystem) route.Action
- func (_m *Route) StaticFile(path string, filepath string) route.Action
- func (_m *Route) Test(request *nethttp.Request) (*nethttp.Response, error)
- type Route_Any_Call
- type Route_Delete_Call
- type Route_Expecter
- func (_e *Route_Expecter) Any(path interface{}, handler interface{}) *Route_Any_Call
- func (_e *Route_Expecter) Delete(path interface{}, handler interface{}) *Route_Delete_Call
- func (_e *Route_Expecter) Fallback(handler interface{}) *Route_Fallback_Call
- func (_e *Route_Expecter) Get(path interface{}, handler interface{}) *Route_Get_Call
- func (_e *Route_Expecter) GetRoutes() *Route_GetRoutes_Call
- func (_e *Route_Expecter) GlobalMiddleware(middlewares ...interface{}) *Route_GlobalMiddleware_Call
- func (_e *Route_Expecter) Group(handler interface{}) *Route_Group_Call
- func (_e *Route_Expecter) Info(name interface{}) *Route_Info_Call
- func (_e *Route_Expecter) Listen(l interface{}) *Route_Listen_Call
- func (_e *Route_Expecter) ListenTLS(l interface{}) *Route_ListenTLS_Call
- func (_e *Route_Expecter) ListenTLSWithCert(l interface{}, certFile interface{}, keyFile interface{}) *Route_ListenTLSWithCert_Call
- func (_e *Route_Expecter) Middleware(middlewares ...interface{}) *Route_Middleware_Call
- func (_e *Route_Expecter) Options(path interface{}, handler interface{}) *Route_Options_Call
- func (_e *Route_Expecter) Patch(path interface{}, handler interface{}) *Route_Patch_Call
- func (_e *Route_Expecter) Post(path interface{}, handler interface{}) *Route_Post_Call
- func (_e *Route_Expecter) Prefix(path interface{}) *Route_Prefix_Call
- func (_e *Route_Expecter) Put(path interface{}, handler interface{}) *Route_Put_Call
- func (_e *Route_Expecter) Recover(recoverFunc interface{}) *Route_Recover_Call
- func (_e *Route_Expecter) Resource(path interface{}, controller interface{}) *Route_Resource_Call
- func (_e *Route_Expecter) Run(host ...interface{}) *Route_Run_Call
- func (_e *Route_Expecter) RunTLS(host ...interface{}) *Route_RunTLS_Call
- func (_e *Route_Expecter) RunTLSWithCert(host interface{}, certFile interface{}, keyFile interface{}) *Route_RunTLSWithCert_Call
- func (_e *Route_Expecter) ServeHTTP(writer interface{}, request interface{}) *Route_ServeHTTP_Call
- func (_e *Route_Expecter) Shutdown(ctx ...interface{}) *Route_Shutdown_Call
- func (_e *Route_Expecter) Static(path interface{}, root interface{}) *Route_Static_Call
- func (_e *Route_Expecter) StaticFS(path interface{}, fs interface{}) *Route_StaticFS_Call
- func (_e *Route_Expecter) StaticFile(path interface{}, filepath interface{}) *Route_StaticFile_Call
- func (_e *Route_Expecter) Test(request interface{}) *Route_Test_Call
- type Route_Fallback_Call
- type Route_GetRoutes_Call
- type Route_Get_Call
- type Route_GlobalMiddleware_Call
- func (_c *Route_GlobalMiddleware_Call) Return() *Route_GlobalMiddleware_Call
- func (_c *Route_GlobalMiddleware_Call) Run(run func(middlewares ...http.Middleware)) *Route_GlobalMiddleware_Call
- func (_c *Route_GlobalMiddleware_Call) RunAndReturn(run func(...http.Middleware)) *Route_GlobalMiddleware_Call
- type Route_Group_Call
- type Route_Info_Call
- type Route_ListenTLSWithCert_Call
- func (_c *Route_ListenTLSWithCert_Call) Return(_a0 error) *Route_ListenTLSWithCert_Call
- func (_c *Route_ListenTLSWithCert_Call) Run(run func(l net.Listener, certFile string, keyFile string)) *Route_ListenTLSWithCert_Call
- func (_c *Route_ListenTLSWithCert_Call) RunAndReturn(run func(net.Listener, string, string) error) *Route_ListenTLSWithCert_Call
- type Route_ListenTLS_Call
- type Route_Listen_Call
- type Route_Middleware_Call
- type Route_Options_Call
- type Route_Patch_Call
- type Route_Post_Call
- type Route_Prefix_Call
- type Route_Put_Call
- type Route_Recover_Call
- type Route_Resource_Call
- func (_c *Route_Resource_Call) Return(_a0 route.Action) *Route_Resource_Call
- func (_c *Route_Resource_Call) Run(run func(path string, controller http.ResourceController)) *Route_Resource_Call
- func (_c *Route_Resource_Call) RunAndReturn(run func(string, http.ResourceController) route.Action) *Route_Resource_Call
- type Route_RunTLSWithCert_Call
- func (_c *Route_RunTLSWithCert_Call) Return(_a0 error) *Route_RunTLSWithCert_Call
- func (_c *Route_RunTLSWithCert_Call) Run(run func(host string, certFile string, keyFile string)) *Route_RunTLSWithCert_Call
- func (_c *Route_RunTLSWithCert_Call) RunAndReturn(run func(string, string, string) error) *Route_RunTLSWithCert_Call
- type Route_RunTLS_Call
- type Route_Run_Call
- type Route_ServeHTTP_Call
- func (_c *Route_ServeHTTP_Call) Return() *Route_ServeHTTP_Call
- func (_c *Route_ServeHTTP_Call) Run(run func(writer nethttp.ResponseWriter, request *nethttp.Request)) *Route_ServeHTTP_Call
- func (_c *Route_ServeHTTP_Call) RunAndReturn(run func(nethttp.ResponseWriter, *nethttp.Request)) *Route_ServeHTTP_Call
- type Route_Shutdown_Call
- type Route_StaticFS_Call
- type Route_StaticFile_Call
- type Route_Static_Call
- type Route_Test_Call
- type Router
- func (_m *Router) Any(path string, handler http.HandlerFunc) route.Action
- func (_m *Router) Delete(path string, handler http.HandlerFunc) route.Action
- func (_m *Router) EXPECT() *Router_Expecter
- func (_m *Router) Get(path string, handler http.HandlerFunc) route.Action
- func (_m *Router) Group(handler route.GroupFunc)
- func (_m *Router) Middleware(middlewares ...http.Middleware) route.Router
- func (_m *Router) Options(path string, handler http.HandlerFunc) route.Action
- func (_m *Router) Patch(path string, handler http.HandlerFunc) route.Action
- func (_m *Router) Post(path string, handler http.HandlerFunc) route.Action
- func (_m *Router) Prefix(path string) route.Router
- func (_m *Router) Put(path string, handler http.HandlerFunc) route.Action
- func (_m *Router) Resource(path string, controller http.ResourceController) route.Action
- func (_m *Router) Static(path string, root string) route.Action
- func (_m *Router) StaticFS(path string, fs nethttp.FileSystem) route.Action
- func (_m *Router) StaticFile(path string, filepath string) route.Action
- type Router_Any_Call
- type Router_Delete_Call
- type Router_Expecter
- func (_e *Router_Expecter) Any(path interface{}, handler interface{}) *Router_Any_Call
- func (_e *Router_Expecter) Delete(path interface{}, handler interface{}) *Router_Delete_Call
- func (_e *Router_Expecter) Get(path interface{}, handler interface{}) *Router_Get_Call
- func (_e *Router_Expecter) Group(handler interface{}) *Router_Group_Call
- func (_e *Router_Expecter) Middleware(middlewares ...interface{}) *Router_Middleware_Call
- func (_e *Router_Expecter) Options(path interface{}, handler interface{}) *Router_Options_Call
- func (_e *Router_Expecter) Patch(path interface{}, handler interface{}) *Router_Patch_Call
- func (_e *Router_Expecter) Post(path interface{}, handler interface{}) *Router_Post_Call
- func (_e *Router_Expecter) Prefix(path interface{}) *Router_Prefix_Call
- func (_e *Router_Expecter) Put(path interface{}, handler interface{}) *Router_Put_Call
- func (_e *Router_Expecter) Resource(path interface{}, controller interface{}) *Router_Resource_Call
- func (_e *Router_Expecter) Static(path interface{}, root interface{}) *Router_Static_Call
- func (_e *Router_Expecter) StaticFS(path interface{}, fs interface{}) *Router_StaticFS_Call
- func (_e *Router_Expecter) StaticFile(path interface{}, filepath interface{}) *Router_StaticFile_Call
- type Router_Get_Call
- type Router_Group_Call
- type Router_Middleware_Call
- func (_c *Router_Middleware_Call) Return(_a0 route.Router) *Router_Middleware_Call
- func (_c *Router_Middleware_Call) Run(run func(middlewares ...http.Middleware)) *Router_Middleware_Call
- func (_c *Router_Middleware_Call) RunAndReturn(run func(...http.Middleware) route.Router) *Router_Middleware_Call
- type Router_Options_Call
- type Router_Patch_Call
- type Router_Post_Call
- type Router_Prefix_Call
- type Router_Put_Call
- type Router_Resource_Call
- func (_c *Router_Resource_Call) Return(_a0 route.Action) *Router_Resource_Call
- func (_c *Router_Resource_Call) Run(run func(path string, controller http.ResourceController)) *Router_Resource_Call
- func (_c *Router_Resource_Call) RunAndReturn(run func(string, http.ResourceController) route.Action) *Router_Resource_Call
- type Router_StaticFS_Call
- func (_c *Router_StaticFS_Call) Return(_a0 route.Action) *Router_StaticFS_Call
- func (_c *Router_StaticFS_Call) Run(run func(path string, fs nethttp.FileSystem)) *Router_StaticFS_Call
- func (_c *Router_StaticFS_Call) RunAndReturn(run func(string, nethttp.FileSystem) route.Action) *Router_StaticFS_Call
- type Router_StaticFile_Call
- type Router_Static_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶ added in v1.15.12
Action is an autogenerated mock type for the Action type
func NewAction ¶ added in v1.15.12
NewAction creates a new instance of Action. 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 (*Action) EXPECT ¶ added in v1.15.12
func (_m *Action) EXPECT() *Action_Expecter
type Action_Expecter ¶ added in v1.15.12
type Action_Expecter struct {
// contains filtered or unexported fields
}
func (*Action_Expecter) Name ¶ added in v1.15.12
func (_e *Action_Expecter) Name(name interface{}) *Action_Name_Call
Name is a helper method to define mock.On call
- name string
type Action_Name_Call ¶ added in v1.15.12
Action_Name_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Name'
func (*Action_Name_Call) Return ¶ added in v1.15.12
func (_c *Action_Name_Call) Return(_a0 route.Action) *Action_Name_Call
func (*Action_Name_Call) Run ¶ added in v1.15.12
func (_c *Action_Name_Call) Run(run func(name string)) *Action_Name_Call
func (*Action_Name_Call) RunAndReturn ¶ added in v1.15.12
func (_c *Action_Name_Call) RunAndReturn(run func(string) route.Action) *Action_Name_Call
type GroupFunc ¶
GroupFunc is an autogenerated mock type for the GroupFunc type
func NewGroupFunc ¶
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
type GroupFunc_Execute_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 (_c *GroupFunc_Execute_Call) Return() *GroupFunc_Execute_Call
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 ¶
Route is an autogenerated mock type for the Route type
func NewRoute ¶
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) 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) GlobalMiddleware ¶
func (_m *Route) GlobalMiddleware(middlewares ...http.Middleware)
GlobalMiddleware provides a mock function with given fields: middlewares
func (*Route) ListenTLSWithCert ¶ added in v1.15.0
ListenTLSWithCert provides a mock function with given fields: l, certFile, keyFile
func (*Route) Middleware ¶
func (_m *Route) Middleware(middlewares ...http.Middleware) route.Router
Middleware provides a mock function with given fields: middlewares
func (*Route) Recover ¶ added in v1.15.0
Recover provides a mock function with given fields: recoverFunc
func (*Route) RunTLSWithCert ¶
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) StaticFile ¶
StaticFile provides a mock function with given fields: path, filepath
type Route_Any_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(_a0 route.Action) *Route_Any_Call
func (*Route_Any_Call) Run ¶
func (_c *Route_Any_Call) Run(run func(path string, handler http.HandlerFunc)) *Route_Any_Call
func (*Route_Any_Call) RunAndReturn ¶
func (_c *Route_Any_Call) RunAndReturn(run func(string, http.HandlerFunc) route.Action) *Route_Any_Call
type Route_Delete_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(_a0 route.Action) *Route_Delete_Call
func (*Route_Delete_Call) Run ¶
func (_c *Route_Delete_Call) Run(run func(path string, handler http.HandlerFunc)) *Route_Delete_Call
func (*Route_Delete_Call) RunAndReturn ¶
func (_c *Route_Delete_Call) RunAndReturn(run func(string, http.HandlerFunc) route.Action) *Route_Delete_Call
type Route_Expecter ¶
type Route_Expecter struct {
// contains filtered or unexported fields
}
func (*Route_Expecter) Any ¶
func (_e *Route_Expecter) Any(path interface{}, handler interface{}) *Route_Any_Call
Any is a helper method to define mock.On call
- path string
- handler http.HandlerFunc
func (*Route_Expecter) Delete ¶
func (_e *Route_Expecter) Delete(path interface{}, handler interface{}) *Route_Delete_Call
Delete is a helper method to define mock.On call
- path 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(path interface{}, handler interface{}) *Route_Get_Call
Get is a helper method to define mock.On call
- path string
- handler http.HandlerFunc
func (*Route_Expecter) GetRoutes ¶ added in v1.15.12
func (_e *Route_Expecter) GetRoutes() *Route_GetRoutes_Call
GetRoutes is a helper method to define mock.On call
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) Info ¶ added in v1.15.12
func (_e *Route_Expecter) Info(name interface{}) *Route_Info_Call
Info is a helper method to define mock.On call
- name string
func (*Route_Expecter) Listen ¶ added in v1.15.0
func (_e *Route_Expecter) Listen(l interface{}) *Route_Listen_Call
Listen is a helper method to define mock.On call
- l net.Listener
func (*Route_Expecter) ListenTLS ¶ added in v1.15.0
func (_e *Route_Expecter) ListenTLS(l interface{}) *Route_ListenTLS_Call
ListenTLS is a helper method to define mock.On call
- l net.Listener
func (*Route_Expecter) ListenTLSWithCert ¶ added in v1.15.0
func (_e *Route_Expecter) ListenTLSWithCert(l interface{}, certFile interface{}, keyFile interface{}) *Route_ListenTLSWithCert_Call
ListenTLSWithCert is a helper method to define mock.On call
- l net.Listener
- certFile string
- keyFile string
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(path interface{}, handler interface{}) *Route_Options_Call
Options is a helper method to define mock.On call
- path string
- handler http.HandlerFunc
func (*Route_Expecter) Patch ¶
func (_e *Route_Expecter) Patch(path interface{}, handler interface{}) *Route_Patch_Call
Patch is a helper method to define mock.On call
- path string
- handler http.HandlerFunc
func (*Route_Expecter) Post ¶
func (_e *Route_Expecter) Post(path interface{}, handler interface{}) *Route_Post_Call
Post is a helper method to define mock.On call
- path string
- handler http.HandlerFunc
func (*Route_Expecter) Prefix ¶
func (_e *Route_Expecter) Prefix(path interface{}) *Route_Prefix_Call
Prefix is a helper method to define mock.On call
- path string
func (*Route_Expecter) Put ¶
func (_e *Route_Expecter) Put(path interface{}, handler interface{}) *Route_Put_Call
Put is a helper method to define mock.On call
- path string
- handler http.HandlerFunc
func (*Route_Expecter) Recover ¶ added in v1.15.0
func (_e *Route_Expecter) Recover(recoverFunc interface{}) *Route_Recover_Call
Recover is a helper method to define mock.On call
- recoverFunc func(http.Context , interface{})
func (*Route_Expecter) Resource ¶
func (_e *Route_Expecter) Resource(path interface{}, controller interface{}) *Route_Resource_Call
Resource is a helper method to define mock.On call
- path 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) Shutdown ¶ added in v1.14.5
func (_e *Route_Expecter) Shutdown(ctx ...interface{}) *Route_Shutdown_Call
Shutdown is a helper method to define mock.On call
- ctx ...context.Context
func (*Route_Expecter) Static ¶
func (_e *Route_Expecter) Static(path interface{}, root interface{}) *Route_Static_Call
Static is a helper method to define mock.On call
- path string
- root string
func (*Route_Expecter) StaticFS ¶
func (_e *Route_Expecter) StaticFS(path interface{}, fs interface{}) *Route_StaticFS_Call
StaticFS is a helper method to define mock.On call
- path string
- fs nethttp.FileSystem
func (*Route_Expecter) StaticFile ¶
func (_e *Route_Expecter) StaticFile(path interface{}, filepath interface{}) *Route_StaticFile_Call
StaticFile is a helper method to define mock.On call
- path string
- filepath string
func (*Route_Expecter) Test ¶ added in v1.15.0
func (_e *Route_Expecter) Test(request interface{}) *Route_Test_Call
Test is a helper method to define mock.On call
- request *nethttp.Request
type Route_Fallback_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 (_c *Route_Fallback_Call) Return() *Route_Fallback_Call
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_GetRoutes_Call ¶ added in v1.15.12
Route_GetRoutes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRoutes'
func (*Route_GetRoutes_Call) Return ¶ added in v1.15.12
func (_c *Route_GetRoutes_Call) Return(_a0 []http.Info) *Route_GetRoutes_Call
func (*Route_GetRoutes_Call) Run ¶ added in v1.15.12
func (_c *Route_GetRoutes_Call) Run(run func()) *Route_GetRoutes_Call
func (*Route_GetRoutes_Call) RunAndReturn ¶ added in v1.15.12
func (_c *Route_GetRoutes_Call) RunAndReturn(run func() []http.Info) *Route_GetRoutes_Call
type Route_Get_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(_a0 route.Action) *Route_Get_Call
func (*Route_Get_Call) Run ¶
func (_c *Route_Get_Call) Run(run func(path string, handler http.HandlerFunc)) *Route_Get_Call
func (*Route_Get_Call) RunAndReturn ¶
func (_c *Route_Get_Call) RunAndReturn(run func(string, http.HandlerFunc) route.Action) *Route_Get_Call
type Route_GlobalMiddleware_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 (_c *Route_GlobalMiddleware_Call) Return() *Route_GlobalMiddleware_Call
func (*Route_GlobalMiddleware_Call) Run ¶
func (_c *Route_GlobalMiddleware_Call) Run(run func(middlewares ...http.Middleware)) *Route_GlobalMiddleware_Call
func (*Route_GlobalMiddleware_Call) RunAndReturn ¶
func (_c *Route_GlobalMiddleware_Call) RunAndReturn(run func(...http.Middleware)) *Route_GlobalMiddleware_Call
type Route_Group_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_Info_Call ¶ added in v1.15.12
Route_Info_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Info'
func (*Route_Info_Call) Return ¶ added in v1.15.12
func (_c *Route_Info_Call) Return(_a0 http.Info) *Route_Info_Call
func (*Route_Info_Call) Run ¶ added in v1.15.12
func (_c *Route_Info_Call) Run(run func(name string)) *Route_Info_Call
func (*Route_Info_Call) RunAndReturn ¶ added in v1.15.12
func (_c *Route_Info_Call) RunAndReturn(run func(string) http.Info) *Route_Info_Call
type Route_ListenTLSWithCert_Call ¶ added in v1.15.0
Route_ListenTLSWithCert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListenTLSWithCert'
func (*Route_ListenTLSWithCert_Call) Return ¶ added in v1.15.0
func (_c *Route_ListenTLSWithCert_Call) Return(_a0 error) *Route_ListenTLSWithCert_Call
func (*Route_ListenTLSWithCert_Call) Run ¶ added in v1.15.0
func (_c *Route_ListenTLSWithCert_Call) Run(run func(l net.Listener, certFile string, keyFile string)) *Route_ListenTLSWithCert_Call
func (*Route_ListenTLSWithCert_Call) RunAndReturn ¶ added in v1.15.0
func (_c *Route_ListenTLSWithCert_Call) RunAndReturn(run func(net.Listener, string, string) error) *Route_ListenTLSWithCert_Call
type Route_ListenTLS_Call ¶ added in v1.15.0
Route_ListenTLS_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListenTLS'
func (*Route_ListenTLS_Call) Return ¶ added in v1.15.0
func (_c *Route_ListenTLS_Call) Return(_a0 error) *Route_ListenTLS_Call
func (*Route_ListenTLS_Call) Run ¶ added in v1.15.0
func (_c *Route_ListenTLS_Call) Run(run func(l net.Listener)) *Route_ListenTLS_Call
func (*Route_ListenTLS_Call) RunAndReturn ¶ added in v1.15.0
func (_c *Route_ListenTLS_Call) RunAndReturn(run func(net.Listener) error) *Route_ListenTLS_Call
type Route_Listen_Call ¶ added in v1.15.0
Route_Listen_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Listen'
func (*Route_Listen_Call) Return ¶ added in v1.15.0
func (_c *Route_Listen_Call) Return(_a0 error) *Route_Listen_Call
func (*Route_Listen_Call) Run ¶ added in v1.15.0
func (_c *Route_Listen_Call) Run(run func(l net.Listener)) *Route_Listen_Call
func (*Route_Listen_Call) RunAndReturn ¶ added in v1.15.0
func (_c *Route_Listen_Call) RunAndReturn(run func(net.Listener) error) *Route_Listen_Call
type Route_Middleware_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 (_c *Route_Middleware_Call) Return(_a0 route.Router) *Route_Middleware_Call
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 ¶
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(_a0 route.Action) *Route_Options_Call
func (*Route_Options_Call) Run ¶
func (_c *Route_Options_Call) Run(run func(path string, handler http.HandlerFunc)) *Route_Options_Call
func (*Route_Options_Call) RunAndReturn ¶
func (_c *Route_Options_Call) RunAndReturn(run func(string, http.HandlerFunc) route.Action) *Route_Options_Call
type Route_Patch_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(_a0 route.Action) *Route_Patch_Call
func (*Route_Patch_Call) Run ¶
func (_c *Route_Patch_Call) Run(run func(path string, handler http.HandlerFunc)) *Route_Patch_Call
func (*Route_Patch_Call) RunAndReturn ¶
func (_c *Route_Patch_Call) RunAndReturn(run func(string, http.HandlerFunc) route.Action) *Route_Patch_Call
type Route_Post_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(_a0 route.Action) *Route_Post_Call
func (*Route_Post_Call) Run ¶
func (_c *Route_Post_Call) Run(run func(path string, handler http.HandlerFunc)) *Route_Post_Call
func (*Route_Post_Call) RunAndReturn ¶
func (_c *Route_Post_Call) RunAndReturn(run func(string, http.HandlerFunc) route.Action) *Route_Post_Call
type Route_Prefix_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 (_c *Route_Prefix_Call) Return(_a0 route.Router) *Route_Prefix_Call
func (*Route_Prefix_Call) Run ¶
func (_c *Route_Prefix_Call) Run(run func(path 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 ¶
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(_a0 route.Action) *Route_Put_Call
func (*Route_Put_Call) Run ¶
func (_c *Route_Put_Call) Run(run func(path string, handler http.HandlerFunc)) *Route_Put_Call
func (*Route_Put_Call) RunAndReturn ¶
func (_c *Route_Put_Call) RunAndReturn(run func(string, http.HandlerFunc) route.Action) *Route_Put_Call
type Route_Recover_Call ¶ added in v1.15.0
Route_Recover_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Recover'
func (*Route_Recover_Call) Return ¶ added in v1.15.0
func (_c *Route_Recover_Call) Return() *Route_Recover_Call
func (*Route_Recover_Call) Run ¶ added in v1.15.0
func (_c *Route_Recover_Call) Run(run func(recoverFunc func(http.Context, interface{}))) *Route_Recover_Call
func (*Route_Recover_Call) RunAndReturn ¶ added in v1.15.0
func (_c *Route_Recover_Call) RunAndReturn(run func(func(http.Context, interface{}))) *Route_Recover_Call
type Route_Resource_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 (_c *Route_Resource_Call) Return(_a0 route.Action) *Route_Resource_Call
func (*Route_Resource_Call) Run ¶
func (_c *Route_Resource_Call) Run(run func(path string, controller http.ResourceController)) *Route_Resource_Call
func (*Route_Resource_Call) RunAndReturn ¶
func (_c *Route_Resource_Call) RunAndReturn(run func(string, http.ResourceController) route.Action) *Route_Resource_Call
type Route_RunTLSWithCert_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 (_c *Route_RunTLSWithCert_Call) Return(_a0 error) *Route_RunTLSWithCert_Call
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 ¶
func (_c *Route_RunTLSWithCert_Call) RunAndReturn(run func(string, string, string) error) *Route_RunTLSWithCert_Call
type Route_RunTLS_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 ¶
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 ¶
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 (_c *Route_ServeHTTP_Call) Return() *Route_ServeHTTP_Call
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 ¶
func (_c *Route_ServeHTTP_Call) RunAndReturn(run func(nethttp.ResponseWriter, *nethttp.Request)) *Route_ServeHTTP_Call
type Route_Shutdown_Call ¶ added in v1.14.5
Route_Shutdown_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Shutdown'
func (*Route_Shutdown_Call) Return ¶ added in v1.14.5
func (_c *Route_Shutdown_Call) Return(_a0 error) *Route_Shutdown_Call
func (*Route_Shutdown_Call) Run ¶ added in v1.14.5
func (_c *Route_Shutdown_Call) Run(run func(ctx ...context.Context)) *Route_Shutdown_Call
func (*Route_Shutdown_Call) RunAndReturn ¶ added in v1.14.5
func (_c *Route_Shutdown_Call) RunAndReturn(run func(...context.Context) error) *Route_Shutdown_Call
type Route_StaticFS_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 (_c *Route_StaticFS_Call) Return(_a0 route.Action) *Route_StaticFS_Call
func (*Route_StaticFS_Call) Run ¶
func (_c *Route_StaticFS_Call) Run(run func(path string, fs nethttp.FileSystem)) *Route_StaticFS_Call
func (*Route_StaticFS_Call) RunAndReturn ¶
func (_c *Route_StaticFS_Call) RunAndReturn(run func(string, nethttp.FileSystem) route.Action) *Route_StaticFS_Call
type Route_StaticFile_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 (_c *Route_StaticFile_Call) Return(_a0 route.Action) *Route_StaticFile_Call
func (*Route_StaticFile_Call) Run ¶
func (_c *Route_StaticFile_Call) Run(run func(path string, filepath string)) *Route_StaticFile_Call
func (*Route_StaticFile_Call) RunAndReturn ¶
func (_c *Route_StaticFile_Call) RunAndReturn(run func(string, string) route.Action) *Route_StaticFile_Call
type Route_Static_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(_a0 route.Action) *Route_Static_Call
func (*Route_Static_Call) Run ¶
func (_c *Route_Static_Call) Run(run func(path string, root string)) *Route_Static_Call
func (*Route_Static_Call) RunAndReturn ¶
func (_c *Route_Static_Call) RunAndReturn(run func(string, string) route.Action) *Route_Static_Call
type Route_Test_Call ¶ added in v1.15.0
Route_Test_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Test'
func (*Route_Test_Call) Return ¶ added in v1.15.0
func (_c *Route_Test_Call) Return(_a0 *nethttp.Response, _a1 error) *Route_Test_Call
func (*Route_Test_Call) Run ¶ added in v1.15.0
func (_c *Route_Test_Call) Run(run func(request *nethttp.Request)) *Route_Test_Call
func (*Route_Test_Call) RunAndReturn ¶ added in v1.15.0
func (_c *Route_Test_Call) RunAndReturn(run func(*nethttp.Request) (*nethttp.Response, error)) *Route_Test_Call
type Router ¶
Router is an autogenerated mock type for the Router type
func NewRouter ¶
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) EXPECT ¶
func (_m *Router) EXPECT() *Router_Expecter
func (*Router) Middleware ¶
func (_m *Router) Middleware(middlewares ...http.Middleware) route.Router
Middleware provides a mock function with given fields: middlewares
type Router_Any_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(_a0 route.Action) *Router_Any_Call
func (*Router_Any_Call) Run ¶
func (_c *Router_Any_Call) Run(run func(path string, handler http.HandlerFunc)) *Router_Any_Call
func (*Router_Any_Call) RunAndReturn ¶
func (_c *Router_Any_Call) RunAndReturn(run func(string, http.HandlerFunc) route.Action) *Router_Any_Call
type Router_Delete_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(_a0 route.Action) *Router_Delete_Call
func (*Router_Delete_Call) Run ¶
func (_c *Router_Delete_Call) Run(run func(path string, handler http.HandlerFunc)) *Router_Delete_Call
func (*Router_Delete_Call) RunAndReturn ¶
func (_c *Router_Delete_Call) RunAndReturn(run func(string, http.HandlerFunc) route.Action) *Router_Delete_Call
type Router_Expecter ¶
type Router_Expecter struct {
// contains filtered or unexported fields
}
func (*Router_Expecter) Any ¶
func (_e *Router_Expecter) Any(path interface{}, handler interface{}) *Router_Any_Call
Any is a helper method to define mock.On call
- path string
- handler http.HandlerFunc
func (*Router_Expecter) Delete ¶
func (_e *Router_Expecter) Delete(path interface{}, handler interface{}) *Router_Delete_Call
Delete is a helper method to define mock.On call
- path string
- handler http.HandlerFunc
func (*Router_Expecter) Get ¶
func (_e *Router_Expecter) Get(path interface{}, handler interface{}) *Router_Get_Call
Get is a helper method to define mock.On call
- path 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(path interface{}, handler interface{}) *Router_Options_Call
Options is a helper method to define mock.On call
- path string
- handler http.HandlerFunc
func (*Router_Expecter) Patch ¶
func (_e *Router_Expecter) Patch(path interface{}, handler interface{}) *Router_Patch_Call
Patch is a helper method to define mock.On call
- path string
- handler http.HandlerFunc
func (*Router_Expecter) Post ¶
func (_e *Router_Expecter) Post(path interface{}, handler interface{}) *Router_Post_Call
Post is a helper method to define mock.On call
- path string
- handler http.HandlerFunc
func (*Router_Expecter) Prefix ¶
func (_e *Router_Expecter) Prefix(path interface{}) *Router_Prefix_Call
Prefix is a helper method to define mock.On call
- path string
func (*Router_Expecter) Put ¶
func (_e *Router_Expecter) Put(path interface{}, handler interface{}) *Router_Put_Call
Put is a helper method to define mock.On call
- path string
- handler http.HandlerFunc
func (*Router_Expecter) Resource ¶
func (_e *Router_Expecter) Resource(path interface{}, controller interface{}) *Router_Resource_Call
Resource is a helper method to define mock.On call
- path string
- controller http.ResourceController
func (*Router_Expecter) Static ¶
func (_e *Router_Expecter) Static(path interface{}, root interface{}) *Router_Static_Call
Static is a helper method to define mock.On call
- path string
- root string
func (*Router_Expecter) StaticFS ¶
func (_e *Router_Expecter) StaticFS(path interface{}, fs interface{}) *Router_StaticFS_Call
StaticFS is a helper method to define mock.On call
- path string
- fs nethttp.FileSystem
func (*Router_Expecter) StaticFile ¶
func (_e *Router_Expecter) StaticFile(path interface{}, filepath interface{}) *Router_StaticFile_Call
StaticFile is a helper method to define mock.On call
- path string
- filepath string
type Router_Get_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(_a0 route.Action) *Router_Get_Call
func (*Router_Get_Call) Run ¶
func (_c *Router_Get_Call) Run(run func(path string, handler http.HandlerFunc)) *Router_Get_Call
func (*Router_Get_Call) RunAndReturn ¶
func (_c *Router_Get_Call) RunAndReturn(run func(string, http.HandlerFunc) route.Action) *Router_Get_Call
type Router_Group_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 ¶
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 (_c *Router_Middleware_Call) Return(_a0 route.Router) *Router_Middleware_Call
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 ¶
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 (_c *Router_Options_Call) Return(_a0 route.Action) *Router_Options_Call
func (*Router_Options_Call) Run ¶
func (_c *Router_Options_Call) Run(run func(path string, handler http.HandlerFunc)) *Router_Options_Call
func (*Router_Options_Call) RunAndReturn ¶
func (_c *Router_Options_Call) RunAndReturn(run func(string, http.HandlerFunc) route.Action) *Router_Options_Call
type Router_Patch_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(_a0 route.Action) *Router_Patch_Call
func (*Router_Patch_Call) Run ¶
func (_c *Router_Patch_Call) Run(run func(path string, handler http.HandlerFunc)) *Router_Patch_Call
func (*Router_Patch_Call) RunAndReturn ¶
func (_c *Router_Patch_Call) RunAndReturn(run func(string, http.HandlerFunc) route.Action) *Router_Patch_Call
type Router_Post_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(_a0 route.Action) *Router_Post_Call
func (*Router_Post_Call) Run ¶
func (_c *Router_Post_Call) Run(run func(path string, handler http.HandlerFunc)) *Router_Post_Call
func (*Router_Post_Call) RunAndReturn ¶
func (_c *Router_Post_Call) RunAndReturn(run func(string, http.HandlerFunc) route.Action) *Router_Post_Call
type Router_Prefix_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 (_c *Router_Prefix_Call) Return(_a0 route.Router) *Router_Prefix_Call
func (*Router_Prefix_Call) Run ¶
func (_c *Router_Prefix_Call) Run(run func(path 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 ¶
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(_a0 route.Action) *Router_Put_Call
func (*Router_Put_Call) Run ¶
func (_c *Router_Put_Call) Run(run func(path string, handler http.HandlerFunc)) *Router_Put_Call
func (*Router_Put_Call) RunAndReturn ¶
func (_c *Router_Put_Call) RunAndReturn(run func(string, http.HandlerFunc) route.Action) *Router_Put_Call
type Router_Resource_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 (_c *Router_Resource_Call) Return(_a0 route.Action) *Router_Resource_Call
func (*Router_Resource_Call) Run ¶
func (_c *Router_Resource_Call) Run(run func(path string, controller http.ResourceController)) *Router_Resource_Call
func (*Router_Resource_Call) RunAndReturn ¶
func (_c *Router_Resource_Call) RunAndReturn(run func(string, http.ResourceController) route.Action) *Router_Resource_Call
type Router_StaticFS_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 (_c *Router_StaticFS_Call) Return(_a0 route.Action) *Router_StaticFS_Call
func (*Router_StaticFS_Call) Run ¶
func (_c *Router_StaticFS_Call) Run(run func(path string, fs nethttp.FileSystem)) *Router_StaticFS_Call
func (*Router_StaticFS_Call) RunAndReturn ¶
func (_c *Router_StaticFS_Call) RunAndReturn(run func(string, nethttp.FileSystem) route.Action) *Router_StaticFS_Call
type Router_StaticFile_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 (_c *Router_StaticFile_Call) Return(_a0 route.Action) *Router_StaticFile_Call
func (*Router_StaticFile_Call) Run ¶
func (_c *Router_StaticFile_Call) Run(run func(path string, filepath string)) *Router_StaticFile_Call
func (*Router_StaticFile_Call) RunAndReturn ¶
func (_c *Router_StaticFile_Call) RunAndReturn(run func(string, string) route.Action) *Router_StaticFile_Call
type Router_Static_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(_a0 route.Action) *Router_Static_Call
func (*Router_Static_Call) Run ¶
func (_c *Router_Static_Call) Run(run func(path string, root string)) *Router_Static_Call
func (*Router_Static_Call) RunAndReturn ¶
func (_c *Router_Static_Call) RunAndReturn(run func(string, string) route.Action) *Router_Static_Call