Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
Router struct
func (*Router) AddRoute ¶
func (r *Router) AddRoute( serverType string, routingFunction RoutingFunc, )
AddRoute adds a routing function to a server type
func (*Router) Route ¶
func (r *Router) Route( ctx context.Context, rpcType protos.RPCType, svType string, route *route.Route, msg *message.Message, ) (*cluster.Server, error)
Route gets the right server to use in the call
func (*Router) SetServiceDiscovery ¶
func (r *Router) SetServiceDiscovery(sd cluster.ServiceDiscovery)
SetServiceDiscovery sets the sd client
Click to show internal directories.
Click to hide internal directories.