snapshotgrpc

package
v0.0.0-...-9b7ba46 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACLProvider

type ACLProvider interface {
	CheckACLNoChannel(resName string, idinfo interface{}) error
}

ACLProvider checks ACL for a channelless resource

type LedgerGetter

type LedgerGetter interface {
	GetLedger(cid string) ledger.PeerLedger
}

LedgerGetter gets the PeerLedger associated with a channel.

type SnapshotService

type SnapshotService struct {
	LedgerGetter LedgerGetter
	ACLProvider  ACLProvider
}

Snapshot Service implements SnapshotServer grpc interface

func (*SnapshotService) Cancel

func (s *SnapshotService) Cancel(ctx context.Context, signedRequest *pb.SignedSnapshotRequest) (*empty.Empty, error)

Cancel cancels a snapshot request.

func (*SnapshotService) Generate

func (s *SnapshotService) Generate(ctx context.Context, signedRequest *pb.SignedSnapshotRequest) (*empty.Empty, error)

Generate generates a snapshot request.

func (*SnapshotService) QueryPendings

QueryPendings returns a list of pending snapshot requests.

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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