Registry / networking / hailocab-go-hostpool

hailocab-go-hostpool

JSON →
library0.0.0-20160125115350-e80d13ce29edgogounverified

A Go package for intelligently pooling hosts with round-robin or epsilon-greedy selection and avoidance of unresponsive hosts.

go get github.com/hailocab/go-hostpool
INSTALL
IMPORT
SIG · HAILOCAB-GO-HOSTPO
H
hailocab-go-hostpool
networkinggov0.0.0-20160125115350-e80d13ce29ed
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

hostpool
github.com/hailocab/go-hostpool

Select a host from a pool using intelligent strategies.

package main import ( "fmt" "github.com/hailocab/go-hostpool" ) func main() { pool := hostpool.New([]string{"host1:8080", "host2:8080"}) host := pool.Get() fmt.Println(host.Host()) host.Mark(nil) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20160125115350-e80d13ce29edlatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
hailocab-go-hostpool — go get hailocab-go-hostpool · libregistry