dummy

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 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 merry.Error)

func (*DummyClient) AddFindResponse

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

func (*DummyClient) Backends

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

func (*DummyClient) Children

func (d *DummyClient) Children() []types.BackendServer

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, merry.Error)

func (*DummyClient) SetTLDResponse

func (c *DummyClient) SetTLDResponse(response ProbeResponse)

func (*DummyClient) SetTagNamesResponse

func (c *DummyClient) SetTagNamesResponse(response []string)

func (*DummyClient) SetTagValuesResponse

func (c *DummyClient) SetTagValuesResponse(response []string)

func (*DummyClient) Stats

func (*DummyClient) TagNames

func (c *DummyClient) TagNames(ctx context.Context, query string, limit int64) ([]string, merry.Error)

func (*DummyClient) TagValues

func (c *DummyClient) TagValues(ctx context.Context, query string, limit int64) ([]string, merry.Error)

type FetchResponse

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

type FindResponse

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

type InfoResponse

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

type ListResponse

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

type ProbeResponse

type ProbeResponse struct {
	Response []string
	Errors   merry.Error
}

type StatsResponse

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

Jump to

Keyboard shortcuts

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