transport

package
v0.0.0-...-4582ed7 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Publisher

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

func NewPublisher

func NewPublisher(topic string, address []string, log *zap.Logger) *Publisher

func (*Publisher) Close

func (p *Publisher) Close()

func (*Publisher) PublishBlock

func (p *Publisher) PublishBlock(ctx context.Context, block []byte)

func (*Publisher) PublishFailedBlock

func (p *Publisher) PublishFailedBlock(ctx context.Context, block models.Block) bool

PublishFailedBlock Create a temporary failed publisher and return block to sender

Jump to

Keyboard shortcuts

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