Documentation ¶
Index ¶
- func AddPreRouter(id string, method []string, path string, handler router.IRouterPreHandler)
- func Delete(id string)
- func DeletePreRouter(id string)
- func Set(id string, port int, hosts []string, method []string, path string, ...) error
- type AppendRule
- type HttpNotFoundHandler
- type IManger
- type IPreRouterData
- type IRouterData
- type Manager
- type NotFoundHandler
- type Router
- type RouterData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPreRouter ¶ added in v0.15.11
func AddPreRouter(id string, method []string, path string, handler router.IRouterPreHandler)
func DeletePreRouter ¶ added in v0.15.11
func DeletePreRouter(id string)
Types ¶
type AppendRule ¶
type AppendRule = http_router.AppendRule
type HttpNotFoundHandler ¶ added in v0.9.0
type HttpNotFoundHandler struct { }
func (*HttpNotFoundHandler) Complete ¶ added in v0.9.0
func (m *HttpNotFoundHandler) Complete(ctx eoscContext.EoContext) error
func (*HttpNotFoundHandler) Finish ¶ added in v0.9.0
func (m *HttpNotFoundHandler) Finish(ctx eoscContext.EoContext) error
type IManger ¶
type IManger interface { Set(id string, port int, protocols []string, hosts []string, method []string, path string, append []AppendRule, router router.IRouterHandler) error Delete(id string) AddPreRouter(id string, method []string, path string, handler router.IRouterPreHandler) DeletePreRouter(id string) }
type IPreRouterData ¶ added in v0.15.11
type IPreRouterData interface { router.IRouterPreHandler AddPreRouter(id string, method []string, path string, handler router.IRouterPreHandler) DeletePreRouter(id string) }
type IRouterData ¶
type IRouterData interface { Set(id string, port int, protocols []string, hosts []string, method []string, path string, append []AppendRule, router router.IRouterHandler) IRouterData Delete(id string) IRouterData Parse() (router.IMatcher, error) }
type Manager ¶
type Manager struct { IPreRouterData // contains filtered or unexported fields }
func (*Manager) FastHandler ¶
func (m *Manager) FastHandler(port int, ctx *fasthttp.RequestCtx)
func (*Manager) SetGlobalFilters ¶ added in v0.10.0
func (m *Manager) SetGlobalFilters(globalFilters *eoscContext.IChainPro)
type NotFoundHandler ¶
type NotFoundHandler struct { }
type Router ¶
type Router struct { Id string Port int Protocols []string Hosts []string Method []string Path string Appends []AppendRule HttpHandler router.IRouterHandler }
type RouterData ¶
type RouterData struct {
// contains filtered or unexported fields
}
func (*RouterData) Delete ¶
func (rs *RouterData) Delete(id string) IRouterData
func (*RouterData) Set ¶
func (rs *RouterData) Set(id string, port int, protocols []string, hosts []string, method []string, path string, append []AppendRule, router router.IRouterHandler) IRouterData
Source Files ¶
Click to show internal directories.
Click to hide internal directories.