Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(kv sarama.KafkaVersion, ro config.Retry, tls config.TLS) multichain.Consenter
New creates a Kafka-backed consenter. Called by orderer's main.go.
Types ¶
type Broker ¶
type Broker interface {
GetOffset(cp ChainPartition, req *sarama.OffsetRequest) (int64, error)
Closeable
}
Broker allows the caller to get info on the cluster's partitions
type ChainPartition ¶
ChainPartition identifies the Kafka partition the orderer interacts with.
type Closeable ¶
type Closeable interface {
Close() error
}
Closeable allows the shut down of the calling resource.
type Consumer ¶
type Consumer interface {
Recv() <-chan *sarama.ConsumerMessage
Errors() <-chan *sarama.ConsumerError
Closeable
}
Consumer allows the caller to receive a stream of blobs from the Kafka cluster for a specific partition.
Click to show internal directories.
Click to hide internal directories.