Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Peer ¶
type Peer struct {
// contains filtered or unexported fields
}
Peer is a wrapper around snapshot client
func NewPeer ¶
func NewPeer(conn grpc.ClientConnInterface, id identity.SigningIdentity) *Peer
func (*Peer) CancelRequest ¶
CancelRequest snapshot from a specific peer
A snapshot for given blockNum must exist or an error will be returned
func (*Peer) QueryPending ¶
func (p *Peer) QueryPending(ctx context.Context, channelID string) (*peer.QueryPendingSnapshotsResponse, error)
QueryPending snapshots from a specific peer
Click to show internal directories.
Click to hide internal directories.