Documentation
¶
Index ¶
- Constants
- type Broker
- func (b *Broker) PublishRawBlock(_ context.Context, block interface{}) error
- func (b *Broker) PublishRawBlockResults(_ context.Context, br interface{}) error
- func (b *Broker) PublishRawGenesis(_ context.Context, g interface{}) error
- func (b *Broker) PublishRawTransaction(_ context.Context, tx interface{}) error
- func (b *Broker) Start(ctx context.Context) error
- func (b *Broker) Stop(ctx context.Context) error
- type Config
- type Topic
- type Topics
Constants ¶
View Source
const ( MsgErrJSONMarshalFail = "json marshal fail: %w" MsgErrCreateProducer = "can't create producer connection to broker: %w " MsgErrCreateAdminClient = "can't create admin client connection to broker: %w" MsgErrCreateTopics = "can't create topics in broker: %w" MsgErrProduceTopic = "can't produce topic: %w" MsgErrCreatePartitions = "can't create partitions in broker: %w" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Broker ¶
type Broker struct {
// contains filtered or unexported fields
}
func (*Broker) PublishRawBlock ¶
func (*Broker) PublishRawBlockResults ¶
func (*Broker) PublishRawGenesis ¶
func (*Broker) PublishRawTransaction ¶
Click to show internal directories.
Click to hide internal directories.