fabric-sdk-go: github.com/hyperledger/fabric-sdk-go/pkg/fab/events/deliverclient Index | Files | Directories

package deliverclient

import "github.com/hyperledger/fabric-sdk-go/pkg/fab/events/deliverclient"

Index

Package Files

deliverclient.go opts.go

func WithBlockNum Uses

func WithBlockNum(value uint64) options.Opt

WithBlockNum specifies the block number from which events are to be received. Note that this option is only valid if SeekType is set to SeekFrom.

func WithSeekType Uses

func WithSeekType(value seek.Type) options.Opt

WithSeekType specifies the point from which block events are to be received.

type Client Uses

type Client struct {
    *client.Client
    // contains filtered or unexported fields
}

Client connects to a peer and receives channel events, such as bock, filtered block, chaincode, and transaction status events.

func New Uses

func New(context fabcontext.Client, chConfig fab.ChannelCfg, discoveryService fab.DiscoveryService, opts ...options.Opt) (*Client, error)

New returns a new deliver event client

func (*Client) PermitBlockEvents Uses

func (p *Client) PermitBlockEvents()

func (*Client) SetConnectionProvider Uses

func (p *Client) SetConnectionProvider(connProvider api.ConnectionProvider)

SetConnectionProvider is only used in unit tests

func (*Client) SetFromBlock Uses

func (p *Client) SetFromBlock(value uint64)

func (*Client) SetResponseTimeout Uses

func (p *Client) SetResponseTimeout(value time.Duration)

func (*Client) SetSeekType Uses

func (p *Client) SetSeekType(value seek.Type)

func (*Client) SetSnapshot Uses

func (p *Client) SetSnapshot(value fab.EventSnapshot) error

Directories

PathSynopsis
connection
dispatcher
mocks
seek

Package deliverclient imports 14 packages (graph) and is imported by 2 packages. Updated 2019-09-15. Refresh now. Tools for package owners.