stream

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StreamConsumer

type StreamConsumer struct {
	Id            int
	Environment   *stream.Environment
	Consumer      *ha.ReliableConsumer
	SuperConsumer *ha.ReliableSuperStreamConsumer
	Topic         string
	Config        config.Config
	// contains filtered or unexported fields
}

func NewConsumer

func NewConsumer(ctx context.Context, cfg config.Config, id int) *StreamConsumer

func (*StreamConsumer) Connect

func (c *StreamConsumer) Connect()

func (*StreamConsumer) Start

func (c *StreamConsumer) Start(consumerReady chan bool)

func (*StreamConsumer) Stop

func (c *StreamConsumer) Stop(reason string)

type StreamPublisher

type StreamPublisher struct {
	Id            int
	Environment   *stream.Environment
	Producer      *ha.ReliableProducer
	SuperProducer *ha.ReliableSuperStreamProducer
	Topic         string
	Config        config.Config
	// contains filtered or unexported fields
}

func NewPublisher

func NewPublisher(ctx context.Context, cfg config.Config, id int) *StreamPublisher

func (*StreamPublisher) Connect

func (p *StreamPublisher) Connect()

func (*StreamPublisher) Send

func (p *StreamPublisher) Send(seq uint64)

func (*StreamPublisher) Start

func (p *StreamPublisher) Start(publisherReady chan bool, startPublishing chan bool)

func (*StreamPublisher) StartPublishing

func (p *StreamPublisher) StartPublishing() string

func (*StreamPublisher) Stop

func (p *StreamPublisher) Stop(reason string)

Jump to

Keyboard shortcuts

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