Documentation ¶
Index ¶
Constants ¶
View Source
const All = "*"
Variables ¶
This section is empty.
Functions ¶
func Key ¶ added in v0.10.0
func Key(rules []AppendRule) string
Types ¶
type AppendRule ¶ added in v0.10.0
type AppendRules ¶ added in v0.10.0
type AppendRules []AppendRule
func (AppendRules) Len ¶ added in v0.10.0
func (as AppendRules) Len() int
func (AppendRules) Less ¶ added in v0.10.0
func (as AppendRules) Less(i, j int) bool
func (AppendRules) Swap ¶ added in v0.10.0
func (as AppendRules) Swap(i, j int)
type EmptyChecker ¶ added in v0.10.0
type EmptyChecker struct { }
func (*EmptyChecker) MatchCheck ¶ added in v0.10.0
func (e *EmptyChecker) MatchCheck(request interface{}) bool
func (*EmptyChecker) Weight ¶ added in v0.10.0
func (e *EmptyChecker) Weight() int
type IMatcher ¶ added in v0.10.0
type IMatcher interface {
Match(port int, request interface{}) (IRouterHandler, bool)
}
type IRouterHandler ¶ added in v0.10.0
type IRouterHandler interface {
Serve(ctx eoscContext.EoContext)
}
type IRouterPreHandler ¶ added in v0.15.11
type IRouterPreHandler interface {
Server(ctx eoscContext.EoContext) (isContinue bool)
}
type MatcherChecker ¶ added in v0.10.0
type MatcherCheckerItem ¶ added in v0.10.0
type MatcherCheckerItem interface { checker.Checker MatcherChecker }
type RuleCheckers ¶ added in v0.10.0
type RuleCheckers []MatcherCheckerItem
func (RuleCheckers) Len ¶ added in v0.10.0
func (rs RuleCheckers) Len() int
func (RuleCheckers) Less ¶ added in v0.10.0
func (rs RuleCheckers) Less(i, j int) bool
func (RuleCheckers) MatchCheck ¶ added in v0.10.0
func (rs RuleCheckers) MatchCheck(request interface{}) bool
func (RuleCheckers) Swap ¶ added in v0.10.0
func (rs RuleCheckers) Swap(i, j int)
func (RuleCheckers) Weight ¶ added in v0.10.0
func (rs RuleCheckers) Weight() int
Click to show internal directories.
Click to hide internal directories.