Documentation ¶
Index ¶
- Variables
- type AgentTester
- type ServerTester
- type Tester
- func (t *Tester) ExpectAgentDialFailure(reason agent.DialFailureReason, count int) error
- func (t *Tester) ExpectAgentDialFailures(expected map[agent.DialFailureReason]int) error
- func (t *Tester) ExpectAgentEndpointConnections(count int) error
- func (t *Tester) ExpectMetric(namespace, subsystem, name, expected string) error
- func (t *Tester) ExpectServerDialFailure(reason server.DialFailureReason, count int) error
- func (t *Tester) ExpectServerDialFailures(expected map[server.DialFailureReason]int) error
- func (t *Tester) ExpectServerEstablishedConns(v int) error
- func (t *Tester) ExpectServerPendingDials(v int) error
- func (t *Tester) ExpectServerReadyBackends(v int) error
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultTester = &Tester{}
Functions ¶
This section is empty.
Types ¶
type AgentTester ¶ added in v0.30.0
type AgentTester interface { ExpectAgentDialFailures(map[agent.DialFailureReason]int) error ExpectAgentDialFailure(agent.DialFailureReason, int) error ExpectAgentEndpointConnections(int) error }
type ServerTester ¶ added in v0.30.0
type Tester ¶ added in v0.30.0
type Tester struct { // Endpoint is the metrics endpoint to scrape metrics from. If it is empty, the in-process // DefaultGatherer is used. Endpoint string }
func (*Tester) ExpectAgentDialFailure ¶ added in v0.30.0
func (t *Tester) ExpectAgentDialFailure(reason agent.DialFailureReason, count int) error
func (*Tester) ExpectAgentDialFailures ¶ added in v0.30.0
func (t *Tester) ExpectAgentDialFailures(expected map[agent.DialFailureReason]int) error
func (*Tester) ExpectAgentEndpointConnections ¶ added in v0.30.0
func (*Tester) ExpectMetric ¶ added in v0.30.0
func (*Tester) ExpectServerDialFailure ¶ added in v0.30.0
func (t *Tester) ExpectServerDialFailure(reason server.DialFailureReason, count int) error
func (*Tester) ExpectServerDialFailures ¶ added in v0.30.0
func (t *Tester) ExpectServerDialFailures(expected map[server.DialFailureReason]int) error
func (*Tester) ExpectServerEstablishedConns ¶ added in v0.30.0
func (*Tester) ExpectServerPendingDials ¶ added in v0.30.0
func (*Tester) ExpectServerReadyBackends ¶ added in v0.30.0
Click to show internal directories.
Click to hide internal directories.