metrics

package
v0.0.0-...-3cab0da Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultBindAddress = ":8080"

DefaultBindAddress sets the default bind address for the metrics listener.

Functions

func NewListener

func NewListener(addr string) (net.Listener, error)

NewListener creates a new TCP listener bound to the given address.

Types

type Server

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

func NewServer

func NewServer(ctx context.Context, opts ...ServerOpt) (*Server, error)

func (*Server) Serve

func (s *Server) Serve(ctx context.Context) error

type ServerOpt

type ServerOpt func(*Server) error

func WithMetricsFile

func WithMetricsFile(metricsFile string) ServerOpt

func WithProcessManager

func WithProcessManager(pm *process.Manager) ServerOpt

func WithRootDir

func WithRootDir(rootDir string) ServerOpt

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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