ha

package
v0.1.0-RC2 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2021 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (
	StatusOpen               = 1
	StatusClosed             = 2
	StatusStreamDoesNotExist = 3
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfirmMessageHandler

type ConfirmMessageHandler func(messageConfirm []*stream.ConfirmationStatus)

type ReliableProducer

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

func NewHAProducer

func NewHAProducer(env *stream.Environment, streamName string,
	producerOptions *stream.ProducerOptions,
	confirmMessageHandler ConfirmMessageHandler) (*ReliableProducer, error)

func (*ReliableProducer) BatchSend

func (p *ReliableProducer) BatchSend(messages []message.StreamMessage) error

func (*ReliableProducer) Close

func (p *ReliableProducer) Close() error

func (*ReliableProducer) GetBroker

func (p *ReliableProducer) GetBroker() *stream.Broker

func (*ReliableProducer) IsOpen

func (p *ReliableProducer) IsOpen() bool

func (*ReliableProducer) Send

func (p *ReliableProducer) Send(message message.StreamMessage) error

Jump to

Keyboard shortcuts

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