Documentation ¶
Index ¶
Constants ¶
View Source
const RandomSelectorType = "random"
View Source
const WeightRandomSelectorType = "weight_random"
View Source
const WeightRoundRobinSelectorType = "weight_round_robin"
Variables ¶
This section is empty.
Functions ¶
func GetSelectorBuilder ¶
Types ¶
type LoadBalanceSelector ¶
func CreateNewSelector ¶
func CreateNewSelector(selectorName string, config *conf.EventMeshHttpClientConfig) (LoadBalanceSelector, error)
type RandomLoadSelector ¶
type RandomLoadSelector struct {
// contains filtered or unexported fields
}
func (*RandomLoadSelector) GetType ¶
func (s *RandomLoadSelector) GetType() string
func (*RandomLoadSelector) Select ¶
func (s *RandomLoadSelector) Select() MeshNode
type WeightRandomLoadSelector ¶
type WeightRandomLoadSelector struct {
// contains filtered or unexported fields
}
func NewWeightRandomLoadSelector ¶
func NewWeightRandomLoadSelector(clusterGroup []MeshNode) (*WeightRandomLoadSelector, error)
func (*WeightRandomLoadSelector) GetType ¶
func (s *WeightRandomLoadSelector) GetType() string
func (*WeightRandomLoadSelector) Select ¶
func (s *WeightRandomLoadSelector) Select() MeshNode
type WeightRoundRobinLoadSelector ¶
type WeightRoundRobinLoadSelector struct {
// contains filtered or unexported fields
}
func NewWeightRoundRobinLoadSelector ¶
func NewWeightRoundRobinLoadSelector(clusterGroup []MeshNode) (*WeightRoundRobinLoadSelector, error)
func (*WeightRoundRobinLoadSelector) GetType ¶
func (s *WeightRoundRobinLoadSelector) GetType() string
func (*WeightRoundRobinLoadSelector) Select ¶
func (s *WeightRoundRobinLoadSelector) Select() MeshNode
type WeightRoundRobinMeshNode ¶
type WeightRoundRobinMeshNode struct { MeshNode // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.