mocks

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: MIT Imports: 4 Imported by: 1 module, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 int, counter int, delta int64)

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

func (*Client) IncCounter

func (_m *Client) IncCounter(scope int, counter int)

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

func (*Client) RecordHistogramDuration added in v0.24.0

func (_m *Client) RecordHistogramDuration(scope int, timer int, d time.Duration)

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

func (*Client) RecordTimer

func (_m *Client) RecordTimer(scope int, timer int, 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 int, tags ...metrics.Tag) metrics.Scope

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

func (*Client) StartTimer

func (_m *Client) StartTimer(scope int, timer int) tally.Stopwatch

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

func (*Client) UpdateGauge

func (_m *Client) UpdateGauge(scope int, gauge int, 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 int, delta int64)

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

func (*Scope) IncCounter added in v0.5.9

func (_m *Scope) IncCounter(counter int)

IncCounter provides a mock function with given fields: counter

func (*Scope) RecordHistogramDuration added in v0.6.0

func (_m *Scope) RecordHistogramDuration(timer int, 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 int, 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 int, 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 int) 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 int, 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