route

package
v1.16.2 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action added in v1.15.12

type Action struct {
	mock.Mock
}

Action is an autogenerated mock type for the Action type

func NewAction added in v1.15.12

func NewAction(t interface {
	mock.TestingT
	Cleanup(func())
}) *Action

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

func (*Action) Name added in v1.15.12

func (_m *Action) Name(name string) route.Action

Name provides a mock function with given fields: name

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

type Action_Name_Call struct {
	*mock.Call
}

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

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(path string, handler http.HandlerFunc) route.Action

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

func (*Route) Delete

func (_m *Route) Delete(path string, handler http.HandlerFunc) route.Action

Delete provides a mock function with given fields: path, 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(path string, handler http.HandlerFunc) route.Action

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

func (*Route) GetRoutes added in v1.15.12

func (_m *Route) GetRoutes() []http.Info

GetRoutes provides a mock function with no fields

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) Info added in v1.15.12

func (_m *Route) Info(name string) http.Info

Info provides a mock function with given fields: name

func (*Route) Listen added in v1.15.0

func (_m *Route) Listen(l net.Listener) error

Listen provides a mock function with given fields: l

func (*Route) ListenTLS added in v1.15.0

func (_m *Route) ListenTLS(l net.Listener) error

ListenTLS provides a mock function with given fields: l

func (*Route) ListenTLSWithCert added in v1.15.0

func (_m *Route) ListenTLSWithCert(l net.Listener, certFile string, keyFile string) error

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) Options

func (_m *Route) Options(path string, handler http.HandlerFunc) route.Action

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

func (*Route) Patch

func (_m *Route) Patch(path string, handler http.HandlerFunc) route.Action

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

func (*Route) Post

func (_m *Route) Post(path string, handler http.HandlerFunc) route.Action

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

func (*Route) Prefix

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

Prefix provides a mock function with given fields: path

func (*Route) Put

func (_m *Route) Put(path string, handler http.HandlerFunc) route.Action

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

func (*Route) Recover added in v1.15.0

func (_m *Route) Recover(recoverFunc func(http.Context, interface{}))

Recover provides a mock function with given fields: recoverFunc

func (*Route) Resource

func (_m *Route) Resource(path string, controller http.ResourceController) route.Action

Resource provides a mock function with given fields: path, 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) Shutdown added in v1.14.5

func (_m *Route) Shutdown(ctx ...context.Context) error

Shutdown provides a mock function with given fields: ctx

func (*Route) Static

func (_m *Route) Static(path string, root string) route.Action

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

func (*Route) StaticFS

func (_m *Route) StaticFS(path string, fs nethttp.FileSystem) route.Action

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

func (*Route) StaticFile

func (_m *Route) StaticFile(path string, filepath string) route.Action

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

func (*Route) Test added in v1.15.0

func (_m *Route) Test(request *nethttp.Request) (*nethttp.Response, error)

Test provides a mock function with given fields: request

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(_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

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 (*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

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_GetRoutes_Call added in v1.15.12

type Route_GetRoutes_Call struct {
	*mock.Call
}

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 (*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

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(_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

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_Info_Call added in v1.15.12

type Route_Info_Call struct {
	*mock.Call
}

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

type Route_ListenTLSWithCert_Call struct {
	*mock.Call
}

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 (*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

type Route_ListenTLS_Call added in v1.15.0

type Route_ListenTLS_Call struct {
	*mock.Call
}

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 (*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

type Route_Listen_Call struct {
	*mock.Call
}

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

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 (*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

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(_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

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(_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

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(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

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(_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

type Route_Recover_Call struct {
	*mock.Call
}

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

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(path 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_Shutdown_Call added in v1.14.5

type Route_Shutdown_Call struct {
	*mock.Call
}

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 (*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

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(path string, fs nethttp.FileSystem)) *Route_StaticFS_Call

func (*Route_StaticFS_Call) RunAndReturn

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(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

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 (*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

type Route_Test_Call struct {
	*mock.Call
}

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

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(path string, handler http.HandlerFunc) route.Action

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

func (*Router) Delete

func (_m *Router) Delete(path string, handler http.HandlerFunc) route.Action

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

func (*Router) EXPECT

func (_m *Router) EXPECT() *Router_Expecter

func (*Router) Get

func (_m *Router) Get(path string, handler http.HandlerFunc) route.Action

Get provides a mock function with given fields: path, 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(path string, handler http.HandlerFunc) route.Action

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

func (*Router) Patch

func (_m *Router) Patch(path string, handler http.HandlerFunc) route.Action

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

func (*Router) Post

func (_m *Router) Post(path string, handler http.HandlerFunc) route.Action

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

func (*Router) Prefix

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

Prefix provides a mock function with given fields: path

func (*Router) Put

func (_m *Router) Put(path string, handler http.HandlerFunc) route.Action

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

func (*Router) Resource

func (_m *Router) Resource(path string, controller http.ResourceController) route.Action

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

func (*Router) Static

func (_m *Router) Static(path string, root string) route.Action

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

func (*Router) StaticFS

func (_m *Router) StaticFS(path string, fs nethttp.FileSystem) route.Action

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

func (*Router) StaticFile

func (_m *Router) StaticFile(path string, filepath string) route.Action

StaticFile provides a mock function with given fields: path, 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(_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

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 (*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

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

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(_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

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(path string, handler http.HandlerFunc)) *Router_Options_Call

func (*Router_Options_Call) RunAndReturn

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 (*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

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(_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

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(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

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(_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

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(path 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(path string, fs nethttp.FileSystem)) *Router_StaticFS_Call

func (*Router_StaticFS_Call) RunAndReturn

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(path string, filepath string)) *Router_StaticFile_Call

func (*Router_StaticFile_Call) RunAndReturn

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 (*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

Jump to

Keyboard shortcuts

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