mocks

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func (*Client) AddCounter

func (_m *Client) AddCounter(scope metrics.ScopeIdx, counter metrics.MetricIdx, delta int64)

AddCounter provides a mock function with given fields: scope, counter, delta

func (*Client) IncCounter

func (_m *Client) IncCounter(scope metrics.ScopeIdx, counter metrics.MetricIdx)

IncCounter provides a mock function with given fields: scope, counter

func (*Client) RecordHistogramDuration added in v0.24.0

func (_m *Client) RecordHistogramDuration(scope metrics.ScopeIdx, timer metrics.MetricIdx, d time.Duration)

RecordHistogramDuration provides a mock function with given fields: scope, timer, d

func (*Client) RecordTimer

func (_m *Client) RecordTimer(scope metrics.ScopeIdx, timer metrics.MetricIdx, d time.Duration)

RecordTimer provides a mock function with given fields: scope, timer, d

func (*Client) Scope added in v0.5.7

func (_m *Client) Scope(scope metrics.ScopeIdx, tags ...metrics.Tag) metrics.Scope

Scope provides a mock function with given fields: scope, tags

func (*Client) StartTimer

func (_m *Client) StartTimer(scope metrics.ScopeIdx, timer metrics.MetricIdx) tally.Stopwatch

StartTimer provides a mock function with given fields: scope, timer

func (*Client) UpdateGauge

func (_m *Client) UpdateGauge(scope metrics.ScopeIdx, gauge metrics.MetricIdx, value float64)

UpdateGauge provides a mock function with given fields: scope, gauge, value

type Scope added in v0.5.9

type Scope struct {
	mock.Mock
}

Scope is an autogenerated mock type for the Scope type

func (*Scope) AddCounter added in v0.5.9

func (_m *Scope) AddCounter(counter metrics.MetricIdx, delta int64)

AddCounter provides a mock function with given fields: counter, delta

func (*Scope) ExponentialHistogram added in v1.3.6

func (_m *Scope) ExponentialHistogram(hist metrics.MetricIdx, d time.Duration)

func (*Scope) IncCounter added in v0.5.9

func (_m *Scope) IncCounter(counter metrics.MetricIdx)

IncCounter provides a mock function with given fields: counter

func (*Scope) IntExponentialHistogram added in v1.3.6

func (_m *Scope) IntExponentialHistogram(hist metrics.MetricIdx, value int)

func (*Scope) RecordHistogramDuration added in v0.6.0

func (_m *Scope) RecordHistogramDuration(timer metrics.MetricIdx, d time.Duration)

RecordHistogramDuration provides a mock function with given fields: timer, d

func (*Scope) RecordHistogramValue added in v0.6.0

func (_m *Scope) RecordHistogramValue(timer metrics.MetricIdx, value float64)

RecordHistogramValue provides a mock function with given fields: timer, value

func (*Scope) RecordTimer added in v0.5.9

func (_m *Scope) RecordTimer(timer metrics.MetricIdx, d time.Duration)

RecordTimer provides a mock function with given fields: timer, d

func (*Scope) StartTimer added in v0.5.9

func (_m *Scope) StartTimer(timer metrics.MetricIdx) metrics.Stopwatch

StartTimer provides a mock function with given fields: timer

func (*Scope) Tagged added in v0.5.9

func (_m *Scope) Tagged(tags ...metrics.Tag) metrics.Scope

Tagged provides a mock function with given fields: tags

func (*Scope) UpdateGauge added in v0.5.9

func (_m *Scope) UpdateGauge(gauge metrics.MetricIdx, value float64)

UpdateGauge provides a mock function with given fields: gauge, value

Jump to

Keyboard shortcuts

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