prometheus

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

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

Go to latest
Published: Apr 23, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NoSessionServer

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

NoSessionServer models no session adapter backend.

func NewNoSessionServer

func NewNoSessionServer(addr uint16, promAddr uint16) (*NoSessionServer, error)

NewNoSessionServer creates a new no session server from given args.

func (*NoSessionServer) Addr

func (s *NoSessionServer) Addr() string

Addr returns the listening address of the server

func (*NoSessionServer) Close

func (s *NoSessionServer) Close() error

Close gracefully shuts down the server

func (*NoSessionServer) HandleMetric

HandleMetric records metric entries and responds with the programmed response

func (*NoSessionServer) PromPort

func (s *NoSessionServer) PromPort() int

PromPort returns the listening address of the prometheus server

func (*NoSessionServer) Run

func (s *NoSessionServer) Run()

Run starts the server run

func (*NoSessionServer) Wait

func (s *NoSessionServer) Wait() error

Wait waits for server to stop

type Server

type Server interface {
	Addr() string
	Close() error
	PromPort() int
	Run()
}

Server is basic server interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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