hostbucket

package
v2.4.1-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2023 License: MIT Imports: 5 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL