Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotHandler = fmt.Errorf("error not handler")
)
Functions ¶
Types ¶
type Config ¶
type Config struct { Policy LoadBalancePolicyEnum `json:",omitempty"` Handlers []*Weight }
type LoadBalancePolicyEnum ¶
type LoadBalancePolicyEnum string
const ( EnumRoundRobin LoadBalancePolicyEnum = "round_robin" EnumRandom LoadBalancePolicyEnum = "random" )
type RoundRobin ¶
type RoundRobin struct {
// contains filtered or unexported fields
}
func (*RoundRobin) ServeStream ¶
func (r *RoundRobin) ServeStream(ctx context.Context, stm stream.Stream)
Click to show internal directories.
Click to hide internal directories.