Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RouterEndpointKey = routerEndpointKey{}
Functions ¶
func AddEndpoint ¶
func AddEndpoint(ctx http_service.IHttpContext, endpoint IRouterEndpoint)
Types ¶
type IRouterEndpoint ¶
type IRouterEndpoint interface { Location() (checker.Checker, bool) Header(name string) (checker.Checker, bool) Query(name string) (checker.Checker, bool) Headers() []string Queries() []string }
IRouterEndpoint 实现了返回路由规则信息方法的接口,如返回location、Host、Header、Query
func EndpointFromContext ¶
func EndpointFromContext(ctx http_service.IHttpContext) (IRouterEndpoint, bool)
type IService ¶
type IService interface { http_service.IChain }
IService github.com/eolinker/apinto/service.service.IService
Click to show internal directories.
Click to hide internal directories.