Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseRouterRule ¶ added in v1.4.0
type BaseRouterRule struct { RawRule string Runtime bool Force bool Valid bool Enabled bool Priority int Dynamic bool Scope string Key string }
BaseRouterRule
type Chain ¶ added in v1.4.0
type Chain interface { // AddRouters Add routers AddRouters([]PriorityRouter) // contains filtered or unexported methods }
Chain
type FilePriorityRouterFactory ¶ added in v1.5.0
type FilePriorityRouterFactory interface { // NewFileRouters Create file router with config file NewFileRouter([]byte) (PriorityRouter, error) }
FilePriorityRouterFactory creates priority router with parse config file
type HealthChecker ¶ added in v1.4.0
type HealthChecker interface { // IsHealthy evaluates the healthy state on the given Invoker IsHealthy(invoker protocol.Invoker) bool }
HealthChecker is used to determine whether the invoker is healthy or not
type PriorityRouter ¶ added in v1.5.0
type PriorityRouter interface { // Priority Return Priority in router // 0 to ^int(0) is better Priority() int64 // contains filtered or unexported methods }
Router
type PriorityRouterFactory ¶ added in v1.5.0
type PriorityRouterFactory interface { // NewPriorityRouter creates router instance with URL NewPriorityRouter(*common.URL) (PriorityRouter, error) }
Extension - Router PriorityRouterFactory creates creates priority router with url
Click to show internal directories.
Click to hide internal directories.