Documentation ¶
Index ¶
Constants ¶
View Source
const (
CName = "common.commonspace.peermanager"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PeerManager ¶
type PeerManager interface { app.Component // SendPeer sends a message to a stream by peerId SendPeer(ctx context.Context, peerId string, msg *spacesyncproto.ObjectSyncMessage) (err error) // Broadcast sends a message to all subscribed peers Broadcast(ctx context.Context, msg *spacesyncproto.ObjectSyncMessage) (err error) // GetResponsiblePeers dials or gets from cache responsible peers GetResponsiblePeers(ctx context.Context) (peers []peer.Peer, err error) // GetNodePeers dials or gets from cache node peers GetNodePeers(ctx context.Context) (peers []peer.Peer, err error) }
type PeerManagerProvider ¶
Directories ¶
Path | Synopsis |
---|---|
Package mock_peermanager is a generated GoMock package.
|
Package mock_peermanager is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.