lb

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2025 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WRR = sync.OnceValue(func() Robin {
	regions := config.GConfig.Extra.DownloadPrefixInfo
	s := &store{
		m:  make(map[string]*robin),
		mu: sync.RWMutex{},
	}
	s.Update(regions)
	return s
})

Functions

This section is empty.

Types

type Robin added in v0.4.1

type Robin interface {
	Acquire(string) *robin
	Update(map[string][]config.RobinServer)
}

Jump to

Keyboard shortcuts

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