Documentation ¶
Overview ¶
Package servicerouter is a service router.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CanaryKey string = "trpc-canary"
CanaryKey is the trpc canary key.
Functions ¶
Types ¶
type Config ¶
type Config struct { // Name is the current name of plugin. Name string // Enable configures whether to enable the service routing function. Enable bool // EnableCanary configures whether to enable the canary function. EnableCanary bool // NeedReturnAllNodes expands all nodes into registry.Node and return. NeedReturnAllNodes bool }
Config configuration.
type ServiceRouter ¶
type ServiceRouter struct { RuleBased servicerouter.ServiceRouter NearbyBased servicerouter.ServiceRouter FilterOnly servicerouter.ServiceRouter DstMeta servicerouter.ServiceRouter SetDivision servicerouter.ServiceRouter Canary servicerouter.ServiceRouter // contains filtered or unexported fields }
ServiceRouter is service routing.
Click to show internal directories.
Click to hide internal directories.