...

Package metricsfakes

import "github.com/hyperledger/fabric/common/metrics/metricsfakes"
Overview
Index

Overview ▾

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index ▾

type Counter
    func (fake *Counter) Add(delta float64)
    func (fake *Counter) AddArgsForCall(i int) float64
    func (fake *Counter) AddCallCount() int
    func (fake *Counter) Invocations() map[string][][]interface{}
    func (fake *Counter) With(labelValues ...string) metrics.Counter
    func (fake *Counter) WithArgsForCall(i int) []string
    func (fake *Counter) WithCallCount() int
    func (fake *Counter) WithReturns(result1 metrics.Counter)
    func (fake *Counter) WithReturnsOnCall(i int, result1 metrics.Counter)
type Gauge
    func (fake *Gauge) Add(delta float64)
    func (fake *Gauge) AddArgsForCall(i int) float64
    func (fake *Gauge) AddCallCount() int
    func (fake *Gauge) Invocations() map[string][][]interface{}
    func (fake *Gauge) Set(value float64)
    func (fake *Gauge) SetArgsForCall(i int) float64
    func (fake *Gauge) SetCallCount() int
    func (fake *Gauge) With(labelValues ...string) metrics.Gauge
    func (fake *Gauge) WithArgsForCall(i int) []string
    func (fake *Gauge) WithCallCount() int
    func (fake *Gauge) WithReturns(result1 metrics.Gauge)
    func (fake *Gauge) WithReturnsOnCall(i int, result1 metrics.Gauge)
type Histogram
    func (fake *Histogram) Invocations() map[string][][]interface{}
    func (fake *Histogram) Observe(value float64)
    func (fake *Histogram) ObserveArgsForCall(i int) float64
    func (fake *Histogram) ObserveCallCount() int
    func (fake *Histogram) With(labelValues ...string) metrics.Histogram
    func (fake *Histogram) WithArgsForCall(i int) []string
    func (fake *Histogram) WithCallCount() int
    func (fake *Histogram) WithReturns(result1 metrics.Histogram)
    func (fake *Histogram) WithReturnsOnCall(i int, result1 metrics.Histogram)
type Provider
    func (fake *Provider) Invocations() map[string][][]interface{}
    func (fake *Provider) NewCounter(arg1 metrics.CounterOpts) metrics.Counter
    func (fake *Provider) NewCounterArgsForCall(i int) metrics.CounterOpts
    func (fake *Provider) NewCounterCallCount() int
    func (fake *Provider) NewCounterReturns(result1 metrics.Counter)
    func (fake *Provider) NewCounterReturnsOnCall(i int, result1 metrics.Counter)
    func (fake *Provider) NewGauge(arg1 metrics.GaugeOpts) metrics.Gauge
    func (fake *Provider) NewGaugeArgsForCall(i int) metrics.GaugeOpts
    func (fake *Provider) NewGaugeCallCount() int
    func (fake *Provider) NewGaugeReturns(result1 metrics.Gauge)
    func (fake *Provider) NewGaugeReturnsOnCall(i int, result1 metrics.Gauge)
    func (fake *Provider) NewHistogram(arg1 metrics.HistogramOpts) metrics.Histogram
    func (fake *Provider) NewHistogramArgsForCall(i int) metrics.HistogramOpts
    func (fake *Provider) NewHistogramCallCount() int
    func (fake *Provider) NewHistogramReturns(result1 metrics.Histogram)
    func (fake *Provider) NewHistogramReturnsOnCall(i int, result1 metrics.Histogram)

Package files

counter.go gauge.go histogram.go provider.go

type Counter

type Counter struct {
    WithStub func(labelValues ...string) metrics.Counter

    AddStub func(delta float64)
    // contains filtered or unexported fields
}

func (*Counter) Add

func (fake *Counter) Add(delta float64)

func (*Counter) AddArgsForCall

func (fake *Counter) AddArgsForCall(i int) float64

func (*Counter) AddCallCount

func (fake *Counter) AddCallCount() int

func (*Counter) Invocations

func (fake *Counter) Invocations() map[string][][]interface{}

func (*Counter) With

func (fake *Counter) With(labelValues ...string) metrics.Counter

func (*Counter) WithArgsForCall

func (fake *Counter) WithArgsForCall(i int) []string

func (*Counter) WithCallCount

func (fake *Counter) WithCallCount() int

func (*Counter) WithReturns

func (fake *Counter) WithReturns(result1 metrics.Counter)

func (*Counter) WithReturnsOnCall

func (fake *Counter) WithReturnsOnCall(i int, result1 metrics.Counter)

type Gauge

type Gauge struct {
    WithStub func(labelValues ...string) metrics.Gauge

    AddStub func(delta float64)

    SetStub func(value float64)
    // contains filtered or unexported fields
}

func (*Gauge) Add

func (fake *Gauge) Add(delta float64)

func (*Gauge) AddArgsForCall

func (fake *Gauge) AddArgsForCall(i int) float64

func (*Gauge) AddCallCount

func (fake *Gauge) AddCallCount() int

func (*Gauge) Invocations

func (fake *Gauge) Invocations() map[string][][]interface{}

func (*Gauge) Set

func (fake *Gauge) Set(value float64)

func (*Gauge) SetArgsForCall

func (fake *Gauge) SetArgsForCall(i int) float64

func (*Gauge) SetCallCount

func (fake *Gauge) SetCallCount() int

func (*Gauge) With

func (fake *Gauge) With(labelValues ...string) metrics.Gauge

func (*Gauge) WithArgsForCall

func (fake *Gauge) WithArgsForCall(i int) []string

func (*Gauge) WithCallCount

func (fake *Gauge) WithCallCount() int

func (*Gauge) WithReturns

func (fake *Gauge) WithReturns(result1 metrics.Gauge)

func (*Gauge) WithReturnsOnCall

func (fake *Gauge) WithReturnsOnCall(i int, result1 metrics.Gauge)

type Histogram

type Histogram struct {
    WithStub func(labelValues ...string) metrics.Histogram

    ObserveStub func(value float64)
    // contains filtered or unexported fields
}

func (*Histogram) Invocations

func (fake *Histogram) Invocations() map[string][][]interface{}

func (*Histogram) Observe

func (fake *Histogram) Observe(value float64)

func (*Histogram) ObserveArgsForCall

func (fake *Histogram) ObserveArgsForCall(i int) float64

func (*Histogram) ObserveCallCount

func (fake *Histogram) ObserveCallCount() int

func (*Histogram) With

func (fake *Histogram) With(labelValues ...string) metrics.Histogram

func (*Histogram) WithArgsForCall

func (fake *Histogram) WithArgsForCall(i int) []string

func (*Histogram) WithCallCount

func (fake *Histogram) WithCallCount() int

func (*Histogram) WithReturns

func (fake *Histogram) WithReturns(result1 metrics.Histogram)

func (*Histogram) WithReturnsOnCall

func (fake *Histogram) WithReturnsOnCall(i int, result1 metrics.Histogram)

type Provider

type Provider struct {
    NewCounterStub func(metrics.CounterOpts) metrics.Counter

    NewGaugeStub func(metrics.GaugeOpts) metrics.Gauge

    NewHistogramStub func(metrics.HistogramOpts) metrics.Histogram
    // contains filtered or unexported fields
}

func (*Provider) Invocations

func (fake *Provider) Invocations() map[string][][]interface{}

func (*Provider) NewCounter

func (fake *Provider) NewCounter(arg1 metrics.CounterOpts) metrics.Counter

func (*Provider) NewCounterArgsForCall

func (fake *Provider) NewCounterArgsForCall(i int) metrics.CounterOpts

func (*Provider) NewCounterCallCount

func (fake *Provider) NewCounterCallCount() int

func (*Provider) NewCounterReturns

func (fake *Provider) NewCounterReturns(result1 metrics.Counter)

func (*Provider) NewCounterReturnsOnCall

func (fake *Provider) NewCounterReturnsOnCall(i int, result1 metrics.Counter)

func (*Provider) NewGauge

func (fake *Provider) NewGauge(arg1 metrics.GaugeOpts) metrics.Gauge

func (*Provider) NewGaugeArgsForCall

func (fake *Provider) NewGaugeArgsForCall(i int) metrics.GaugeOpts

func (*Provider) NewGaugeCallCount

func (fake *Provider) NewGaugeCallCount() int

func (*Provider) NewGaugeReturns

func (fake *Provider) NewGaugeReturns(result1 metrics.Gauge)

func (*Provider) NewGaugeReturnsOnCall

func (fake *Provider) NewGaugeReturnsOnCall(i int, result1 metrics.Gauge)

func (*Provider) NewHistogram

func (fake *Provider) NewHistogram(arg1 metrics.HistogramOpts) metrics.Histogram

func (*Provider) NewHistogramArgsForCall

func (fake *Provider) NewHistogramArgsForCall(i int) metrics.HistogramOpts

func (*Provider) NewHistogramCallCount

func (fake *Provider) NewHistogramCallCount() int

func (*Provider) NewHistogramReturns

func (fake *Provider) NewHistogramReturns(result1 metrics.Histogram)

func (*Provider) NewHistogramReturnsOnCall

func (fake *Provider) NewHistogramReturnsOnCall(i int, result1 metrics.Histogram)