Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Liveliness ¶
type LivelyRequest ¶
type LivelyRequest struct {
ConcurrentPings int
}
type Peer ¶
type Peer struct { Addr string `json:"addr"` ID string `json:"id"` Primary bool `json:"primary"` Peers map[string]*Peer `json:"peers"` // contains filtered or unexported fields }
func (*Peer) Liveliness ¶
func (p *Peer) Liveliness(llv *LivelyRequest) (livePeers, nonLivePeers []*Liveliness, err error)
func (*Peer) SetHTTPRoundTripper ¶
func (p *Peer) SetHTTPRoundTripper(rt http.RoundTripper)
Click to show internal directories.
Click to hide internal directories.