Documentation ¶
Index ¶
- type ACLProvider
- type LedgerGetter
- type SnapshotService
- func (s *SnapshotService) Cancel(ctx context.Context, signedRequest *pb.SignedSnapshotRequest) (*empty.Empty, error)
- func (s *SnapshotService) Generate(ctx context.Context, signedRequest *pb.SignedSnapshotRequest) (*empty.Empty, error)
- func (s *SnapshotService) QueryPendings(ctx context.Context, signedRequest *pb.SignedSnapshotRequest) (*pb.QueryPendingSnapshotsResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ACLProvider ¶
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 ¶
func (s *SnapshotService) QueryPendings(ctx context.Context, signedRequest *pb.SignedSnapshotRequest) (*pb.QueryPendingSnapshotsResponse, error)
QueryPendings returns a list of pending snapshot requests.
Click to show internal directories.
Click to hide internal directories.