Documentation ¶
Index ¶
- type Engine
- func (_m *Engine) Any(relativePath string, handler http.HandlerFunc)
- func (_m *Engine) Delete(relativePath string, handler http.HandlerFunc)
- func (_m *Engine) Fallback(handler http.HandlerFunc)
- func (_m *Engine) Get(relativePath string, handler http.HandlerFunc)
- func (_m *Engine) GlobalMiddleware(middlewares ...http.Middleware)
- func (_m *Engine) Group(handler route.GroupFunc)
- func (_m *Engine) Middleware(middlewares ...http.Middleware) route.Route
- func (_m *Engine) Options(relativePath string, handler http.HandlerFunc)
- func (_m *Engine) Patch(relativePath string, handler http.HandlerFunc)
- func (_m *Engine) Post(relativePath string, handler http.HandlerFunc)
- func (_m *Engine) Prefix(addr string) route.Route
- func (_m *Engine) Put(relativePath string, handler http.HandlerFunc)
- func (_m *Engine) Run(host ...string) error
- func (_m *Engine) RunTLS(host ...string) error
- func (_m *Engine) RunTLSWithCert(host string, certFile string, keyFile string) error
- func (_m *Engine) ServeHTTP(writer nethttp.ResponseWriter, request *nethttp.Request)
- func (_m *Engine) Static(relativePath string, root string)
- func (_m *Engine) StaticFS(relativePath string, fs nethttp.FileSystem)
- func (_m *Engine) StaticFile(relativePath string, filepath string)
- type Route
- func (_m *Route) Any(relativePath string, handler http.HandlerFunc)
- func (_m *Route) Delete(relativePath string, handler http.HandlerFunc)
- func (_m *Route) Get(relativePath string, handler http.HandlerFunc)
- func (_m *Route) Group(handler route.GroupFunc)
- func (_m *Route) Middleware(middlewares ...http.Middleware) route.Route
- func (_m *Route) Options(relativePath string, handler http.HandlerFunc)
- func (_m *Route) Patch(relativePath string, handler http.HandlerFunc)
- func (_m *Route) Post(relativePath string, handler http.HandlerFunc)
- func (_m *Route) Prefix(addr string) route.Route
- func (_m *Route) Put(relativePath string, handler http.HandlerFunc)
- func (_m *Route) Static(relativePath string, root string)
- func (_m *Route) StaticFS(relativePath string, fs nethttp.FileSystem)
- func (_m *Route) StaticFile(relativePath string, filepath string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
Engine is an autogenerated mock type for the Engine type
func NewEngine ¶
func NewEngine(t mockConstructorTestingTNewEngine) *Engine
NewEngine creates a new instance of Engine. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Engine) Any ¶
func (_m *Engine) Any(relativePath string, handler http.HandlerFunc)
Any provides a mock function with given fields: relativePath, handler
func (*Engine) Delete ¶
func (_m *Engine) Delete(relativePath string, handler http.HandlerFunc)
Delete provides a mock function with given fields: relativePath, handler
func (*Engine) Fallback ¶ added in v1.11.0
func (_m *Engine) Fallback(handler http.HandlerFunc)
Fallback provides a mock function with given fields: handler
func (*Engine) Get ¶
func (_m *Engine) Get(relativePath string, handler http.HandlerFunc)
Get provides a mock function with given fields: relativePath, handler
func (*Engine) GlobalMiddleware ¶
func (_m *Engine) GlobalMiddleware(middlewares ...http.Middleware)
GlobalMiddleware provides a mock function with given fields: middlewares
func (*Engine) Middleware ¶
func (_m *Engine) Middleware(middlewares ...http.Middleware) route.Route
Middleware provides a mock function with given fields: middlewares
func (*Engine) Options ¶
func (_m *Engine) Options(relativePath string, handler http.HandlerFunc)
Options provides a mock function with given fields: relativePath, handler
func (*Engine) Patch ¶
func (_m *Engine) Patch(relativePath string, handler http.HandlerFunc)
Patch provides a mock function with given fields: relativePath, handler
func (*Engine) Post ¶
func (_m *Engine) Post(relativePath string, handler http.HandlerFunc)
Post provides a mock function with given fields: relativePath, handler
func (*Engine) Put ¶
func (_m *Engine) Put(relativePath string, handler http.HandlerFunc)
Put provides a mock function with given fields: relativePath, handler
func (*Engine) RunTLSWithCert ¶ added in v1.11.0
RunTLSWithCert provides a mock function with given fields: host, certFile, keyFile
func (*Engine) ServeHTTP ¶
func (_m *Engine) ServeHTTP(writer nethttp.ResponseWriter, request *nethttp.Request)
ServeHTTP provides a mock function with given fields: writer, request
func (*Engine) StaticFS ¶
func (_m *Engine) StaticFS(relativePath string, fs nethttp.FileSystem)
StaticFS provides a mock function with given fields: relativePath, fs
func (*Engine) StaticFile ¶
StaticFile provides a mock function with given fields: relativePath, filepath
type Route ¶
Route is an autogenerated mock type for the Route type
func NewRoute ¶
func NewRoute(t mockConstructorTestingTNewRoute) *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.
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) Get ¶
func (_m *Route) Get(relativePath string, handler http.HandlerFunc)
Get provides a mock function with given fields: relativePath, handler
func (*Route) Middleware ¶
func (_m *Route) Middleware(middlewares ...http.Middleware) route.Route
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) Put ¶
func (_m *Route) Put(relativePath string, handler http.HandlerFunc)
Put provides a mock function with given fields: relativePath, handler
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 ¶
StaticFile provides a mock function with given fields: relativePath, filepath