Documentation ¶
Index ¶
- type PreRouteHookFunc
- type Router
- func (r *Router) AddPreRouteHook(hook PreRouteHookFunc)
- func (r *Router) AddRoute(serverType string, routingFunction RoutingFunc)
- func (r *Router) PreRouteHook(msg *message.Message)
- func (r *Router) Route(ctx context.Context, rpcType protos.RPCType, svType string, route *route.Route, ...) (*cluster.Server, error)
- type RoutingFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PreRouteHookFunc ¶
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
Router struct
func (*Router) AddPreRouteHook ¶
func (r *Router) AddPreRouteHook(hook PreRouteHookFunc)
func (*Router) AddRoute ¶
func (r *Router) AddRoute( serverType string, routingFunction RoutingFunc, )
AddRoute adds a routing function to a server type
func (*Router) PreRouteHook ¶
Click to show internal directories.
Click to hide internal directories.