stream

package
v0.0.0-...-f92ee09 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broker

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

Broker represents the message broker used for streaming data messages to clients.

func NewBroker

func NewBroker() *Broker

NewBroker creates a new Broker instance.

func (*Broker) AddConnection

func (b *Broker) AddConnection(conn *websocket.Conn)

AddConnection adds a new connection to the message broker.

func (*Broker) AddNext

func (b *Broker) AddNext(pe pipeline.Pipeline)

AddNext ...

func (Broker) ListClients

func (b Broker) ListClients() []string

ListClients lists clients connected via websocket streamer

func (*Broker) Next

func (b *Broker) Next() pipeline.Pipeline

Next ...

func (*Broker) Publish

func (b *Broker) Publish(m *model.Message) error

Publish ...

Jump to

Keyboard shortcuts

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