config

package
v1.0.0-alpha2 Latest Latest
Warning

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

Go to latest
Published: May 12, 2017 License: Apache-2.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel struct {
	// HashingAlgorithmVal is returned as the result of HashingAlgorithm() if set
	HashingAlgorithmVal func([]byte) []byte
	// BlockDataHashingStructureWidthVal is returned as the result of BlockDataHashingStructureWidth()
	BlockDataHashingStructureWidthVal uint32
	// OrdererAddressesVal is returned as the result of OrdererAddresses()
	OrdererAddressesVal []string
}

Channel is a mock implementation of config.Channel

func (*Channel) BlockDataHashingStructureWidth

func (scm *Channel) BlockDataHashingStructureWidth() uint32

BlockDataHashingStructureWidth returns the BlockDataHashingStructureWidthVal

func (*Channel) HashingAlgorithm

func (scm *Channel) HashingAlgorithm() func([]byte) []byte

HashingAlgorithm returns the HashingAlgorithmVal if set, otherwise a fake simple hash function

func (*Channel) OrdererAddresses

func (scm *Channel) OrdererAddresses() []string

OrdererAddresses returns the OrdererAddressesVal

type Orderer

type Orderer struct {
	// ConsensusTypeVal is returned as the result of ConsensusType()
	ConsensusTypeVal string
	// BatchSizeVal is returned as the result of BatchSize()
	BatchSizeVal *ab.BatchSize
	// BatchTimeoutVal is returned as the result of BatchTimeout()
	BatchTimeoutVal time.Duration
	// KafkaBrokersVal is returned as the result of KafkaBrokers()
	KafkaBrokersVal []string
	// MaxChannelsCountVal is returns as the result of MaxChannelsCount()
	MaxChannelsCountVal uint64
}

Orderer is a mock implementation of config.Orderer

func (*Orderer) BatchSize

func (scm *Orderer) BatchSize() *ab.BatchSize

BatchSize returns the BatchSizeVal

func (*Orderer) BatchTimeout

func (scm *Orderer) BatchTimeout() time.Duration

BatchTimeout returns the BatchTimeoutVal

func (*Orderer) ConsensusType

func (scm *Orderer) ConsensusType() string

ConsensusType returns the ConsensusTypeVal

func (*Orderer) KafkaBrokers

func (scm *Orderer) KafkaBrokers() []string

KafkaBrokers returns the KafkaBrokersVal

func (*Orderer) MaxChannelsCount

func (scm *Orderer) MaxChannelsCount() uint64

MaxChannelsCount returns the MaxChannelsCountVal

Jump to

Keyboard shortcuts

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