avr_harness

package
v0.0.0-...-1e14d63 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NatsSubj = "controller.avrd.metrics"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	NATSPort  int    `envconfig:"nats_port" default:"4222"`
	AvrSocket string `envconfig:"avr_socket" default:"/tmp/bench.sock"`
	PromPort  int    `envconfig:"prometheus_port" default:"2112"`
}

type Harness

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

func (*Harness) SetupNATSSubscriber

func (h *Harness) SetupNATSSubscriber(subj string, addr string) *NatsConn

type NatsConn

type NatsConn struct {
	Nats  *nats.Conn
	Stats chan *Stats
}

type Stats

type Stats struct {
	Stats   *metrics.StatsEntity
	Subject *string
	Size    *int
}

Stats is a container, so we can pass through the channel

Jump to

Keyboard shortcuts

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