Versions in this module Expand all Collapse all v2 v2.7.1 Jan 15, 2024 v2.7.0 Jan 12, 2024 Changes in this version + type Router struct + func New() *Router + func (r *Router) AddRoute(serverType string, routingFunction RoutingFunc) + func (r *Router) Route(ctx context.Context, rpcType protos.RPCType, svType string, route *route.Route, ...) (*cluster.Server, error) + func (r *Router) SetServiceDiscovery(sd cluster.ServiceDiscovery) + type RoutingFunc func(ctx context.Context, route *route.Route, payload []byte, ...) (*cluster.Server, error)