Documentation ¶
Index ¶
- type Engine
- func (_m *Engine) Any(_a0 string, _a1 http.HandlerFunc)
- func (_m *Engine) Delete(_a0 string, _a1 http.HandlerFunc)
- func (_m *Engine) Get(_a0 string, _a1 http.HandlerFunc)
- func (_m *Engine) GlobalMiddleware(_a0 ...http.Middleware)
- func (_m *Engine) Group(_a0 route.GroupFunc)
- func (_m *Engine) Middleware(_a0 ...http.Middleware) route.Route
- func (_m *Engine) Options(_a0 string, _a1 http.HandlerFunc)
- func (_m *Engine) Patch(_a0 string, _a1 http.HandlerFunc)
- func (_m *Engine) Post(_a0 string, _a1 http.HandlerFunc)
- func (_m *Engine) Prefix(addr string) route.Route
- func (_m *Engine) Put(_a0 string, _a1 http.HandlerFunc)
- func (_m *Engine) Run(addr string) error
- func (_m *Engine) RunTLS(addr string, certFile string, keyFile string) error
- func (_m *Engine) ServeHTTP(w nethttp.ResponseWriter, req *nethttp.Request)
- func (_m *Engine) Static(_a0 string, _a1 string)
- func (_m *Engine) StaticFS(_a0 string, _a1 nethttp.FileSystem)
- func (_m *Engine) StaticFile(_a0 string, _a1 string)
- type Route
- func (_m *Route) Any(_a0 string, _a1 http.HandlerFunc)
- func (_m *Route) Delete(_a0 string, _a1 http.HandlerFunc)
- func (_m *Route) Get(_a0 string, _a1 http.HandlerFunc)
- func (_m *Route) Group(_a0 route.GroupFunc)
- func (_m *Route) Middleware(_a0 ...http.Middleware) route.Route
- func (_m *Route) Options(_a0 string, _a1 http.HandlerFunc)
- func (_m *Route) Patch(_a0 string, _a1 http.HandlerFunc)
- func (_m *Route) Post(_a0 string, _a1 http.HandlerFunc)
- func (_m *Route) Prefix(addr string) route.Route
- func (_m *Route) Put(_a0 string, _a1 http.HandlerFunc)
- func (_m *Route) Static(_a0 string, _a1 string)
- func (_m *Route) StaticFS(_a0 string, _a1 nethttp.FileSystem)
- func (_m *Route) StaticFile(_a0 string, _a1 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(_a0 string, _a1 http.HandlerFunc)
Any provides a mock function with given fields: _a0, _a1
func (*Engine) Delete ¶
func (_m *Engine) Delete(_a0 string, _a1 http.HandlerFunc)
Delete provides a mock function with given fields: _a0, _a1
func (*Engine) Get ¶
func (_m *Engine) Get(_a0 string, _a1 http.HandlerFunc)
Get provides a mock function with given fields: _a0, _a1
func (*Engine) GlobalMiddleware ¶
func (_m *Engine) GlobalMiddleware(_a0 ...http.Middleware)
GlobalMiddleware provides a mock function with given fields: _a0
func (*Engine) Middleware ¶
func (_m *Engine) Middleware(_a0 ...http.Middleware) route.Route
Middleware provides a mock function with given fields: _a0
func (*Engine) Options ¶
func (_m *Engine) Options(_a0 string, _a1 http.HandlerFunc)
Options provides a mock function with given fields: _a0, _a1
func (*Engine) Patch ¶
func (_m *Engine) Patch(_a0 string, _a1 http.HandlerFunc)
Patch provides a mock function with given fields: _a0, _a1
func (*Engine) Post ¶
func (_m *Engine) Post(_a0 string, _a1 http.HandlerFunc)
Post provides a mock function with given fields: _a0, _a1
func (*Engine) Put ¶
func (_m *Engine) Put(_a0 string, _a1 http.HandlerFunc)
Put provides a mock function with given fields: _a0, _a1
func (*Engine) RunTLS ¶ added in v1.9.0
RunTLS provides a mock function with given fields: addr, certFile, keyFile
func (*Engine) ServeHTTP ¶
func (_m *Engine) ServeHTTP(w nethttp.ResponseWriter, req *nethttp.Request)
ServeHTTP provides a mock function with given fields: w, req
func (*Engine) StaticFS ¶
func (_m *Engine) StaticFS(_a0 string, _a1 nethttp.FileSystem)
StaticFS provides a mock function with given fields: _a0, _a1
func (*Engine) StaticFile ¶
StaticFile provides a mock function with given fields: _a0, _a1
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(_a0 string, _a1 http.HandlerFunc)
Any provides a mock function with given fields: _a0, _a1
func (*Route) Delete ¶
func (_m *Route) Delete(_a0 string, _a1 http.HandlerFunc)
Delete provides a mock function with given fields: _a0, _a1
func (*Route) Get ¶
func (_m *Route) Get(_a0 string, _a1 http.HandlerFunc)
Get provides a mock function with given fields: _a0, _a1
func (*Route) Middleware ¶
func (_m *Route) Middleware(_a0 ...http.Middleware) route.Route
Middleware provides a mock function with given fields: _a0
func (*Route) Options ¶
func (_m *Route) Options(_a0 string, _a1 http.HandlerFunc)
Options provides a mock function with given fields: _a0, _a1
func (*Route) Patch ¶
func (_m *Route) Patch(_a0 string, _a1 http.HandlerFunc)
Patch provides a mock function with given fields: _a0, _a1
func (*Route) Post ¶
func (_m *Route) Post(_a0 string, _a1 http.HandlerFunc)
Post provides a mock function with given fields: _a0, _a1
func (*Route) Put ¶
func (_m *Route) Put(_a0 string, _a1 http.HandlerFunc)
Put provides a mock function with given fields: _a0, _a1
func (*Route) StaticFS ¶
func (_m *Route) StaticFS(_a0 string, _a1 nethttp.FileSystem)
StaticFS provides a mock function with given fields: _a0, _a1
func (*Route) StaticFile ¶
StaticFile provides a mock function with given fields: _a0, _a1