fakeprovider

package
v0.0.0-...-7a0dfb2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counting

type Counting struct {
	// contains filtered or unexported fields
}

func (*Counting) EstimatedTags

func (fp *Counting) EstimatedTags() int

func (*Counting) IPs

func (fp *Counting) IPs() []gostatsd.Source

func (*Counting) Invocations

func (fp *Counting) Invocations() uint64

func (*Counting) MaxInstancesBatch

func (fp *Counting) MaxInstancesBatch() int

type Failing

type Failing struct {
	Counting
}

func (*Failing) Instance

func (fp *Failing) Instance(ctx context.Context, ips ...gostatsd.Source) (map[gostatsd.Source]*gostatsd.Instance, error)

func (*Failing) Name

func (fp *Failing) Name() string

type IP

type IP struct {
	Counting
	Region string
	Tags   gostatsd.Tags
}

func (*IP) Instance

func (fp *IP) Instance(ctx context.Context, ips ...gostatsd.Source) (map[gostatsd.Source]*gostatsd.Instance, error)

func (*IP) Name

func (fp *IP) Name() string

type NotFound

type NotFound struct {
	Counting
}

func (*NotFound) Instance

func (fp *NotFound) Instance(ctx context.Context, ips ...gostatsd.Source) (map[gostatsd.Source]*gostatsd.Instance, error)

func (*NotFound) Name

func (fp *NotFound) Name() string

type Transient

type Transient struct {
	FailureMode []int
	// contains filtered or unexported fields
}

func (*Transient) EstimatedTags

func (fpt *Transient) EstimatedTags() int

func (*Transient) Instance

func (fpt *Transient) Instance(ctx context.Context, ips ...gostatsd.Source) (map[gostatsd.Source]*gostatsd.Instance, error)

Instance emulates a lookup based on the supplied criteria. A failure mode of 0 is a successful lookup A failure mode of 1 is nil instance, no error (lookup failure) A failure mode of 2 is nil instance, with error Repeats the last specified failure mode

func (*Transient) MaxInstancesBatch

func (fpt *Transient) MaxInstancesBatch() int

func (*Transient) Name

func (fpt *Transient) Name() string

Jump to

Keyboard shortcuts

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