blockledger

package
v0.0.0-...-95b87ed Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNextBlock

func CreateNextBlock(rl Reader, messages []*cb.Envelope) *cb.Block

func GetBlock

func GetBlock(rl Reader, index uint64) *cb.Block

Types

type Factory

type Factory interface {
	GetOrCreate(channelID string) (ReadWriter, error)

	ChannelIDs() []string

	Close()
}

type Iterator

type Iterator interface {
	Next() (*cb.Block, cb.Status)

	Close()
}

type NotFoundErrorIterator

type NotFoundErrorIterator struct{}

func (*NotFoundErrorIterator) Close

func (nfei *NotFoundErrorIterator) Close()

func (*NotFoundErrorIterator) Next

func (nfei *NotFoundErrorIterator) Next() (*cb.Block, cb.Status)

func (*NotFoundErrorIterator) ReadyChan

func (nfei *NotFoundErrorIterator) ReadyChan() <-chan struct{}

type ReadWriter

type ReadWriter interface {
	Reader
	Writer
}

type Reader

type Reader interface {
	Iterator(startType *ab.SeekPosition) (Iterator, uint64)

	Height() uint64
}

type Writer

type Writer interface {
	Append(block *cb.Block) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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