Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HostBucket ¶
type HostBucket struct {
// contains filtered or unexported fields
}
func New ¶
func New(teams map[string]string) *HostBucket
func (*HostBucket) AddNode ¶
func (hb *HostBucket) AddNode(id string, weight int)
func (*HostBucket) Buckets ¶
func (hb *HostBucket) Buckets() map[string]*epb.TeamBucket
func (*HostBucket) DeleteNode ¶
func (hb *HostBucket) DeleteNode(id string) bool
func (*HostBucket) Exists ¶
func (hb *HostBucket) Exists(id string) (exists bool)
func (*HostBucket) UpdateTeams ¶
func (hb *HostBucket) UpdateTeams(teams map[string]string)
TODO: effective ip addition & deletion
Click to show internal directories.
Click to hide internal directories.