Documentation ¶
Index ¶
- type TestStatsdCall
- type TestStatsdClient
- func (tg *TestStatsdClient) CallNames() []string
- func (tg *TestStatsdClient) CallsByName() map[string]int
- func (tg *TestStatsdClient) Close() error
- func (tg *TestStatsdClient) Closed() bool
- func (tg *TestStatsdClient) Count(name string, value int64, tags []string, rate float64) error
- func (tg *TestStatsdClient) CountCalls() []TestStatsdCall
- func (tg *TestStatsdClient) CountWithTimestamp(name string, value int64, tags []string, rate float64, _ time.Time) error
- func (tg *TestStatsdClient) Counts() map[string]int64
- func (tg *TestStatsdClient) DistributionSamples(_ string, _ []float64, _ []string, _ float64) error
- func (tg *TestStatsdClient) Flush() error
- func (tg *TestStatsdClient) Flushed() int
- func (tg *TestStatsdClient) Gauge(name string, value float64, tags []string, rate float64) error
- func (tg *TestStatsdClient) GaugeCalls() []TestStatsdCall
- func (tg *TestStatsdClient) GaugeWithTimestamp(name string, value float64, tags []string, rate float64, _ time.Time) error
- func (tg *TestStatsdClient) Incr(name string, tags []string, rate float64) error
- func (tg *TestStatsdClient) IncrCalls() []TestStatsdCall
- func (tg *TestStatsdClient) Reset()
- func (tg *TestStatsdClient) Tags() []string
- func (tg *TestStatsdClient) Timing(name string, value time.Duration, tags []string, rate float64) error
- func (tg *TestStatsdClient) TimingCalls() []TestStatsdCall
- func (tg *TestStatsdClient) Wait(asserts *assert.Assertions, n int, d time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestStatsdCall ¶
type TestStatsdCall struct {
// contains filtered or unexported fields
}
type TestStatsdClient ¶
type TestStatsdClient struct {
// contains filtered or unexported fields
}
func (*TestStatsdClient) CallNames ¶
func (tg *TestStatsdClient) CallNames() []string
func (*TestStatsdClient) CallsByName ¶
func (tg *TestStatsdClient) CallsByName() map[string]int
func (*TestStatsdClient) Close ¶
func (tg *TestStatsdClient) Close() error
func (*TestStatsdClient) Closed ¶
func (tg *TestStatsdClient) Closed() bool
func (*TestStatsdClient) CountCalls ¶
func (tg *TestStatsdClient) CountCalls() []TestStatsdCall
func (*TestStatsdClient) CountWithTimestamp ¶
func (*TestStatsdClient) Counts ¶
func (tg *TestStatsdClient) Counts() map[string]int64
func (*TestStatsdClient) DistributionSamples ¶
func (*TestStatsdClient) Flush ¶
func (tg *TestStatsdClient) Flush() error
func (*TestStatsdClient) Flushed ¶
func (tg *TestStatsdClient) Flushed() int
func (*TestStatsdClient) GaugeCalls ¶
func (tg *TestStatsdClient) GaugeCalls() []TestStatsdCall
func (*TestStatsdClient) GaugeWithTimestamp ¶
func (*TestStatsdClient) Incr ¶
func (tg *TestStatsdClient) Incr(name string, tags []string, rate float64) error
func (*TestStatsdClient) IncrCalls ¶
func (tg *TestStatsdClient) IncrCalls() []TestStatsdCall
func (*TestStatsdClient) Reset ¶
func (tg *TestStatsdClient) Reset()
func (*TestStatsdClient) Tags ¶
func (tg *TestStatsdClient) Tags() []string
func (*TestStatsdClient) TimingCalls ¶
func (tg *TestStatsdClient) TimingCalls() []TestStatsdCall
func (*TestStatsdClient) Wait ¶
func (tg *TestStatsdClient) Wait(asserts *assert.Assertions, n int, d time.Duration) error
Wait blocks until n metrics have been reported using the statsdtest.TestStatsdClient or until duration d passes. If d passes, or a wait is already active, an error is returned.
Click to show internal directories.
Click to hide internal directories.