dummy

package
v0.0.0-...-b9a9d18 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2019 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DummyClient

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

func NewDummyClient

func NewDummyClient(name string, backends []string, maxMetricsPerRequest int) *DummyClient

func NewDummyClientWithTimeout

func NewDummyClientWithTimeout(name string, backends []string, maxMetricsPerRequest int, alwaysTimeout time.Duration) *DummyClient

func (*DummyClient) AddFetchResponse

func (c *DummyClient) AddFetchResponse(request *protov3.MultiFetchRequest, response *protov3.MultiFetchResponse, stats *types.Stats, errors *errors.Errors)

func (*DummyClient) AddFindResponse

func (c *DummyClient) AddFindResponse(request *protov3.MultiGlobRequest, response *protov3.MultiGlobResponse, stats *types.Stats, errors *errors.Errors)

func (*DummyClient) Backends

func (c *DummyClient) Backends() []string

func (*DummyClient) Fetch

func (*DummyClient) Find

func (*DummyClient) List

func (*DummyClient) MaxMetricsPerRequest

func (c *DummyClient) MaxMetricsPerRequest() int

func (*DummyClient) Name

func (c *DummyClient) Name() string

func (*DummyClient) ProbeTLDs

func (c *DummyClient) ProbeTLDs(ctx context.Context) ([]string, *errors.Errors)

func (*DummyClient) SetTLDResponse

func (c *DummyClient) SetTLDResponse(response ProbeResponse)

func (*DummyClient) Stats

type FetchResponse

type FetchResponse struct {
	Response *protov3.MultiFetchResponse
	Stats    *types.Stats
	Errors   *errors.Errors
}

type FindResponse

type FindResponse struct {
	Response *protov3.MultiGlobResponse
	Stats    *types.Stats
	Errors   *errors.Errors
}

type InfoResponse

type InfoResponse struct {
	Response *protov3.ZipperInfoResponse
	Stats    *types.Stats
	Errors   *errors.Errors
}

type ListResponse

type ListResponse struct {
	Response *protov3.ListMetricsResponse
	Stats    *types.Stats
	Errors   *errors.Errors
}

type ProbeResponse

type ProbeResponse struct {
	Response []string
	Errors   *errors.Errors
}

type StatsResponse

type StatsResponse struct {
	Response *protov3.MetricDetailsResponse
	Stats    *types.Stats
	Errors   *errors.Errors
}

Jump to

Keyboard shortcuts

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