go-hostpool

Intelligently and flexibly pool among multiple hosts from your Go application

Github星跟蹤圖

go-hostpool

Build Status GoDoc GitHub release

A Go package to intelligently and flexibly pool among multiple hosts from your Go application.
Host selection can operate in round robin or epsilon greedy mode, and unresponsive hosts are
avoided.
Usage example:

hp := hostpool.NewEpsilonGreedy([]string{"a", "b"}, 0, &hostpool.LinearEpsilonValueCalculator{})
hostResponse := hp.Get()
hostname := hostResponse.Host()
err := _ // (make a request with hostname)
hostResponse.Mark(err)

View more detailed documentation on godoc.org

主要指標

概覽
名稱與所有者bitly/go-hostpool
主編程語言Go
編程語言Go (語言數: 1)
平台
許可證MIT License
所有者活动
創建於2012-11-14 19:17:47
推送於2025-08-13 03:33:11
最后一次提交2025-08-12 23:31:20
發布數2
最新版本名稱v0.1.1 (發布於 )
第一版名稱v0.1.0 (發布於 )
用户参与
星數380
關注者數28
派生數51
提交數30
已啟用問題?
問題數4
打開的問題數2
拉請求數10
打開的拉請求數1
關閉的拉請求數4
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?