Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FastestResponseFanIn ¶
FastestResponseFanIn is a FanIn that selects a first (fastest) OK response from the channel of responseQueue
type RandomRoutingStrategy ¶
type RandomRoutingStrategy struct {
fiber.BaseFiberType
}
RandomRoutingStrategy is just a reference implementation of a RoutingStrategy. It randomly selects a primary route and all other routes are fallbacks (with no specific order)
func (*RandomRoutingStrategy) SelectRoute ¶
func (s *RandomRoutingStrategy) SelectRoute( _ context.Context, _ fiber.Request, routes map[string]fiber.Component, ) (route fiber.Component, fallbacks []fiber.Component, labels fiber.Labels, err error)
SelectRoute on the RandomRoutingStrategy selects one of the given routes as the primary route, at random, and sets the others as fallbacks
Click to show internal directories.
Click to hide internal directories.