...

Package api

import "github.com/hyperledger/fabric/peer/common/api"
Overview
Index

Overview ▾

type DeliverClient

DeliverClient defines the interface for a deliver client

type DeliverClient interface {
    Deliver(ctx context.Context, opts ...grpc.CallOption) (DeliverService, error)
}

type DeliverService

DeliverService defines the interface for delivering blocks

type DeliverService interface {
    Send(*cb.Envelope) error
    Recv() (*ab.DeliverResponse, error)
    CloseSend() error
}

type PeerDeliverClient

PeerDeliverClient defines the interface for a peer deliver client

type PeerDeliverClient interface {
    Deliver(ctx context.Context, opts ...grpc.CallOption) (api.Deliver, error)
    DeliverFiltered(ctx context.Context, opts ...grpc.CallOption) (api.Deliver, error)
}