Versions in this module Expand all Collapse all v0 v0.2.0 Mar 13, 2019 v0.1.0 Jul 23, 2018 Changes in this version + var CircleProtocol = protocol.ID("/indigo/node/circle/v1.0.0") + var DiscoverProtocol = protocol.ID("/indigo/node/circle-discover/v1.0.0") + type Circle interface + Run func(ctx context.Context) error + func NewCircleProcess(lib lib.Lib, hub *Hub, localPeer []byte, electionTick int, heartbeatTick int, ...) Circle + type Hub struct + func NewHub() *Hub + func (h *Hub) Discover(peerID pb.PeerID) <-chan pb.Peer + func (h *Hub) Expel(peerID pb.PeerID) + func (h *Hub) Invite(peerID pb.PeerID) + func (h *Hub) Join(peerID pb.PeerID) + func (h *Hub) Log() <-chan pb.Entry + func (h *Hub) Peers() <-chan pb.Peer + func (h *Hub) Propose(proposal pb.Proposal) + func (h *Hub) Start() + func (h *Hub) Status() pb.StatusInfo + func (h *Hub) Stop() + type Net interface + CircleHandler func(stream inet.Stream) + DiscoverHandler func(stream inet.Stream) + Run func(ctx context.Context) error + func NewNetProcess(host host, hub *Hub) Net