snapshot

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

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 (*Peer) CancelRequest

func (p *Peer) CancelRequest(ctx context.Context, channelID string, blockNum uint64) error

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

func (*Peer) SubmitRequest

func (p *Peer) SubmitRequest(ctx context.Context, channelID string, blockNum uint64) error

SubmitRequest snapshot from a specific peer

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL