testing

package
v0.10.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

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) Blocks added in v0.10.0

func (m *BlocksDelivererMock) Blocks(
	_ context.Context,
	channelName string,
	_ msp.SigningIdentity,
	blockRange ...int64,
) (<-chan *common.Block, func() error, error)

func (*BlocksDelivererMock) ParsedBlocks added in v0.10.6

func (m *BlocksDelivererMock) ParsedBlocks(
	_ context.Context,
	channelName string,
	_ msp.SigningIdentity,
	blockRange ...int64,
) (<-chan *hlfproto.Block, func() error, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL