Versions in this module Expand all Collapse all v1 v1.5.4 Oct 26, 2023 Changes in this version + const DefaultTableSize + type Config struct + HashFunction string + TableSize int + func (c *Config) SetDefault() + func (c *Config) Verify() error + type MaglevLoadBalancer struct + func (m *MaglevLoadBalancer) ChooseInstance(criteria *loadbalancer.Criteria, inputInstances model.ServiceInstances) (model.Instance, error) + func (m *MaglevLoadBalancer) Destroy() error + func (m *MaglevLoadBalancer) Init(ctx *plugin.InitContext) error + func (m *MaglevLoadBalancer) Name() string + func (m *MaglevLoadBalancer) Type() common.Type + type TableSelector struct + func NewTable(instanceSet *model.InstanceSet, tableSize uint64, ...) (*TableSelector, error) + func (t *TableSelector) Select(value interface{}) (int, *model.ReplicateNodes, error)