testing

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlocksDelivererMock

type BlocksDelivererMock struct {
	// contains filtered or unexported fields
}

func NewBlocksDelivererMock

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

func (m *BlocksDelivererMock) Blocks(
	ctx context.Context,
	channelName string,
	identity msp.SigningIdentity,
	blockRange ...int64,
) (blockChan <-chan *common.Block, closer func() error, err error)

type ChannelsFetcherMock

type ChannelsFetcherMock struct {
	// contains filtered or unexported fields
}

func NewChannelsFetcherMock

func NewChannelsFetcherMock(channels []string) *ChannelsFetcherMock

func (ChannelsFetcherMock) GetChannels

Jump to

Keyboard shortcuts

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