controllers

package
v0.0.0-...-8540621 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Row

type Row struct {
	Metric string `bigquery:"metric"`
	// Labels is a JSON encoded representation of the various labels.
	Labels    string    `bigquery:"labels"`
	Value     float64   `bigquery:"value"`
	Timestamp time.Time `bigquery:"timestamp"`
}

Row represents a bq row.

type Server

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

Server defines an metrics server type.

func NewServer

func NewServer(nc *nats.Conn, bqDataset *bigquery.Dataset) *Server

NewServer creates a server.

func (*Server) Start

func (s *Server) Start()

Start sets up the listeners starts handling messages.

func (*Server) Stop

func (s *Server) Stop()

Stop performs any necessary cleanup before shutdown.

Jump to

Keyboard shortcuts

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