noop

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector struct {
}

Collector for noop

func NewCollector

func NewCollector() *Collector

NewCollector creates a new noop Collector

func (*Collector) RegisterCounter

func (p *Collector) RegisterCounter(_ adapter.CollectorOptions) adapter.Counter

RegisterCounter returns a noop Counter

func (*Collector) RegisterGauge

func (p *Collector) RegisterGauge(_ adapter.CollectorOptions) adapter.Gauge

RegisterGauge returns a noop Gauge

func (*Collector) RegisterTimer

func (p *Collector) RegisterTimer(_ adapter.CollectorOptions) adapter.Timer

RegisterTimer returns a noop Timer

func (*Collector) Shutdown

func (p *Collector) Shutdown()

Shutdown (noop)

type Counter

type Counter struct {
}

Counter for noop

func (*Counter) Add

func (c *Counter) Add(n int64, labels adapter.Labels)

Add (noop)

func (*Counter) Inc

func (c *Counter) Inc(labels adapter.Labels)

Inc (noop)

type Gauge

type Gauge struct {
}

Gauge for noop

func (*Gauge) Add

func (c *Gauge) Add(n int64, labels adapter.Labels)

Add (noop)

func (*Gauge) Inc

func (c *Gauge) Inc(labels adapter.Labels)

Inc (noop)

func (*Gauge) Set

func (c *Gauge) Set(n int64, labels adapter.Labels)

Set (noop)

func (*Gauge) Sub

func (c *Gauge) Sub(n int64, labels adapter.Labels)

Sub (noop)

type Timer

type Timer struct {
}

Timer for noop

func (*Timer) Observe

func (c *Timer) Observe(n int64, labels adapter.Labels)

Observe (noop)

Jump to

Keyboard shortcuts

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