metrics

package
v0.0.0-...-cd29b86 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exporter

type Exporter interface {
	Handle(ctx *fasthttp.RequestCtx)
	IncSendError(string, string)
	IncConsumeError(string, string)
	IncError(string)
	IncConsumer(string, string)
	DecConsumer(string, string)
	IncConnection(string)
	DecConnection(string)
	SendSeconds(time.Duration, string, string)
	ConsumeSeconds(time.Duration, string, string)
}

Exporter interface

func CreateExporter

func CreateExporter(enabled bool, name string) Exporter

CreateExporter factory method

type NilExporter

type NilExporter struct {
}

NilExporter .

func (*NilExporter) ConsumeSeconds

func (n *NilExporter) ConsumeSeconds(d time.Duration, service string, name string)

ConsumeSeconds .

func (*NilExporter) DecConnection

func (n *NilExporter) DecConnection(name string)

DecConnection .

func (*NilExporter) DecConsumer

func (n *NilExporter) DecConsumer(service string, name string)

DecConsumer .

func (*NilExporter) Handle

func (n *NilExporter) Handle(ctx *fasthttp.RequestCtx)

Handler .

func (*NilExporter) IncConnection

func (n *NilExporter) IncConnection(name string)

IncConnection .

func (*NilExporter) IncConsumeError

func (n *NilExporter) IncConsumeError(service string, name string)

IncConsumeError .

func (*NilExporter) IncConsumer

func (n *NilExporter) IncConsumer(service string, name string)

IncConsumer .

func (*NilExporter) IncError

func (n *NilExporter) IncError(service string)

IncError .

func (*NilExporter) IncSendError

func (n *NilExporter) IncSendError(service string, name string)

IncSendError .

func (*NilExporter) SendSeconds

func (n *NilExporter) SendSeconds(d time.Duration, service string, name string)

SendSeconds .

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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