messages

package
v0.0.0-...-7359d40 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const VizierConnectedChannel = "VizierConnected"

VizierConnectedChannel is the channel to listen to be notified of Viziers connecting. The message passed along this channel is of type px.cloud.messages.VizierConnected.

Variables

This section is empty.

Functions

This section is empty.

Types

type NatsErrorCounter

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

NatsErrorCounter is a counter for NATS errors.

func NewNatsErrorCounter

func NewNatsErrorCounter() *NatsErrorCounter

NewNatsErrorCounter creates a new counter for NATS errors.

func (*NatsErrorCounter) HandleNatsError

func (c *NatsErrorCounter) HandleNatsError(conn *nats.Conn, sub *nats.Subscription, err error)

HandleNatsError handles the Nats error by logging and tracking metrics.

Jump to

Keyboard shortcuts

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