Documentation ¶
Index ¶
- func NewDeliverClient(rootPath string, closeWhenAllRead bool) (peer.DeliverClient, error)
- type BlocksDelivererMock
- func (m *BlocksDelivererMock) Blocks(_ context.Context, channelName string, _ msp.SigningIdentity, ...) (<-chan *common.Block, func() error, error)
- func (m *BlocksDelivererMock) ParsedBlocks(_ context.Context, channelName string, _ msp.SigningIdentity, ...) (<-chan *hlfproto.Block, func() error, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDeliverClient ¶
func NewDeliverClient(rootPath string, closeWhenAllRead bool) (peer.DeliverClient, error)
Types ¶
type BlocksDelivererMock ¶ added in v0.10.0
type BlocksDelivererMock struct {
// contains filtered or unexported fields
}
func NewBlocksDelivererMock ¶ added in v0.10.0
func NewBlocksDelivererMock(rootPath string, closeWhenAllRead bool) (*BlocksDelivererMock, error)
NewBlocksDelivererMock - read all blocks in proto format from provided folder. returns sdkapi.BlocksDeliverer - interface closeWhenAllRead - close channel when all data have been written closerFunc - close func that will be returned from Blocks()
func (*BlocksDelivererMock) ParsedBlocks ¶ added in v0.10.6
Click to show internal directories.
Click to hide internal directories.