metrics

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(port int, opt ...Option) (*server, error)

Types

type Logger

type Logger interface {
	Infof(format string, args ...interface{})
	Errorf(format string, args ...interface{})
}

type Option

type Option func(*options)

func WithCustomViews

func WithCustomViews(views ...*view.View) Option

func WithGracefulPeriod

func WithGracefulPeriod(period time.Duration) Option

func WithGrpcViews

func WithGrpcViews(views ...*view.View) Option

func WithHttpViews

func WithHttpViews(views ...*view.View) Option

func WithLogger

func WithLogger(logger Logger) Option

func WithNamespace

func WithNamespace(namespace string) Option

func WithPath

func WithPath(path string) Option

func WithReportingPeriod

func WithReportingPeriod(period time.Duration) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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