Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Deliver creates a Deliver stream Deliver = func(client pb.DeliverClient) (deliverStream, error) { return client.Deliver(context.Background()) } // DeliverFiltered creates a DeliverFiltered stream DeliverFiltered = func(client pb.DeliverClient) (deliverStream, error) { return client.DeliverFiltered(context.Background()) } )
Functions ¶
This section is empty.
Types ¶
type DeliverConnection ¶
type DeliverConnection struct {
comm.GRPCConnection
}
DeliverConnection manages the connection to the deliver server
func New ¶
func New(ctx fabcontext.Client, chConfig fab.ChannelCfg, streamProvider StreamProvider, url string, opts ...options.Opt) (*DeliverConnection, error)
New returns a new Deliver Server connection
func (*DeliverConnection) Receive ¶
func (c *DeliverConnection) Receive(eventch chan<- interface{})
Receive receives events from the deliver server
type StreamProvider ¶
type StreamProvider func(pb.DeliverClient) (deliverStream, error)
StreamProvider creates a deliver stream
Click to show internal directories.
Click to hide internal directories.