Documentation ¶
Index ¶
- func RandomPos(octets int) (result []byte)
- type Peer
- type Peers
- type Ring
- func (self *Ring) AddPeer(peer *Peer)
- func (self *Ring) ByName(name string) (result *Peer, found bool)
- func (self *Ring) Clone() (result *Ring)
- func (self *Ring) Each(f func(*Peer))
- func (self *Ring) Equal(o *Ring) bool
- func (self *Ring) Len() int
- func (self *Ring) MarshalBinary() (b []byte, err error)
- func (self *Ring) MarshalText() (b []byte, err error)
- func (self *Ring) Predecessors(pos []byte, n int) (result Peers)
- func (self *Ring) Rand() (result *Peer)
- func (self *Ring) RemovePeer(name string)
- func (self *Ring) String() string
- func (self *Ring) Successors(pos []byte, n int) (result Peers)
- func (self *Ring) UnmarshalBinary(b []byte) (err error)
- func (self *Ring) UnmarshalText(b []byte) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Ring ¶
type Ring struct {
// contains filtered or unexported fields
}
func (*Ring) MarshalBinary ¶
func (*Ring) MarshalText ¶
func (*Ring) RemovePeer ¶
func (*Ring) UnmarshalBinary ¶
func (*Ring) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.