wavefront

package
Version: v0.0.0-...-bb0e5b5 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2020 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 Server

type Server interface {
	Addr() string
	Close() error
	Run(shutdown chan error)
}

Server is basic server interface

func NewWavefrontAdapter

func NewWavefrontAdapter(addr string) (Server, error)

NewWavefrontAdapter creates a new Wavefront adapter that listens at provided port.

type WavefrontAdapter

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

WavefrontAdapter supports metric template.

func (*WavefrontAdapter) Addr

func (wa *WavefrontAdapter) Addr() string

Addr returns the listening address of the server.

func (*WavefrontAdapter) Close

func (wa *WavefrontAdapter) Close() error

Close gracefully shuts down the server; used for testing.

func (*WavefrontAdapter) HandleMetric

HandleMetric records metric entries.

func (*WavefrontAdapter) Run

func (wa *WavefrontAdapter) Run(shutdown chan error)

Run starts the server run.

Directories

Path Synopsis
Package config is a generated protocol buffer package.
Package config is a generated protocol buffer package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL