observer

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPromStub

func NewPromStub() promStub

Types

type Builder

type Builder struct {
	Logger Logger
	// contains filtered or unexported fields
}

func New

func New(logger Logger, registrer prometheus.Registerer) *Builder

func NewStub

func NewStub() *Builder

func (*Builder) Binary

func (builder *Builder) Binary() *binary.Builder

func (*Builder) Debugf

func (builder *Builder) Debugf(template string, args ...interface{})

func (*Builder) Errf

func (builder *Builder) Errf(err error, template string, args ...interface{})

func (*Builder) Errorf

func (builder *Builder) Errorf(template string, args ...interface{})

func (*Builder) Infof

func (builder *Builder) Infof(template string, args ...interface{})

func (*Builder) Nullary

func (builder *Builder) Nullary() *nullary.Builder

func (*Builder) Unary

func (builder *Builder) Unary() *unary.Builder

type Logger

type Logger interface {
	Debugf(template string, args ...interface{})
	Errorf(template string, args ...interface{})
	Infof(template string, args ...interface{})
	Errf(err error, template string, args ...interface{})
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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