Versions in this module Expand all Collapse all v0 v0.1.0 Feb 24, 2018 Changes in this version + func RegisterGossipServer(s *grpc1.Server, srv GossipServer) + type Empty struct + func (*Empty) Descriptor() ([]byte, []int) + func (*Empty) ProtoMessage() + func (m *Empty) Reset() + func (m *Empty) String() string + type GossipClient interface + GetGossipTable func(ctx context.Context, in *Empty, opts ...grpc1.CallOption) (*GossipTable, error) + Ping func(ctx context.Context, in *Empty, opts ...grpc1.CallOption) (*Empty, error) + PullGossip func(ctx context.Context, in *Empty, opts ...grpc1.CallOption) (*GossipTable, error) + PushGossip func(ctx context.Context, in *GossipTable, opts ...grpc1.CallOption) (*Empty, error) + func NewGossipClient(cc *grpc1.ClientConn) GossipClient + type GossipServer interface + GetGossipTable func(context.Context, *Empty) (*GossipTable, error) + Ping func(context.Context, *Empty) (*Empty, error) + PullGossip func(context.Context, *Empty) (*GossipTable, error) + PushGossip func(context.Context, *GossipTable) (*Empty, error) + type GossipTable struct + MyID string + Peer []*Peer + func (*GossipTable) Descriptor() ([]byte, []int) + func (*GossipTable) ProtoMessage() + func (m *GossipTable) GetMyID() string + func (m *GossipTable) GetPeer() []*Peer + func (m *GossipTable) Reset() + func (m *GossipTable) String() string + type Peer struct + Counter int64 + IpAddress string + PeerID string + func (*Peer) Descriptor() ([]byte, []int) + func (*Peer) ProtoMessage() + func (m *Peer) GetCounter() int64 + func (m *Peer) GetIpAddress() string + func (m *Peer) GetPeerID() string + func (m *Peer) Reset() + func (m *Peer) String() string + type PeersInfo struct + func (*PeersInfo) Descriptor() ([]byte, []int) + func (*PeersInfo) ProtoMessage() + func (m *PeersInfo) Reset() + func (m *PeersInfo) String() string