Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ByteValue ¶
type ByteValue struct {
// contains filtered or unexported fields
}
ByteValue 缓存值的数据格式封装
type GetterFunc ¶
type Group ¶
type Group struct {
// contains filtered or unexported fields
}
Group 负责与外部交互控制主流程
func (*Group) RegisterPeers ¶
func (this *Group) RegisterPeers(peers PeerPicker)
type HTTPPool ¶
type HTTPPool struct {
// contains filtered or unexported fields
}
HTTPPool HTTP服务端
func NewHTTPPool ¶
type HttpGetter ¶
type HttpGetter struct {
// contains filtered or unexported fields
}
HttpGetter 封装http获取缓存
type PeerGetter ¶
PeerGetter 从节点获取数据
type PeerPicker ¶
type PeerPicker interface {
PickPeer(key string) (peer PeerGetter, ok bool)
}
PeerPicker 节点选择器
Click to show internal directories.
Click to hide internal directories.