Documentation
¶
Overview ¶
Package router is an interface for global service routing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( StatsTopic = "micro.router.stats" LabelPrefix = "X-Micro-Label-" )
Functions ¶
Types ¶
type Router ¶
type Router interface {
// Provides the selector interface
selector.Selector
// Return stats maintained here
Stats() ([]*Stats, error)
// Record stats for a request - too many args ugh
Record(r Request, node *registry.Node, d time.Duration, err error)
}
The router is the client interface to a global service loadbalancer (GSLB). Metrics are batched and published to a router which has a view of the whole system.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.