Documentation ¶
Index ¶
- type DummyClient
- func (c *DummyClient) AddFetchResponse(request *protov3.MultiFetchRequest, response *protov3.MultiFetchResponse, ...)
- func (c *DummyClient) AddFindResponse(request *protov3.MultiGlobRequest, response *protov3.MultiGlobResponse, ...)
- func (c *DummyClient) Backends() []string
- func (d *DummyClient) Children() []types.BackendServer
- func (c *DummyClient) Fetch(ctx context.Context, request *protov3.MultiFetchRequest) (*protov3.MultiFetchResponse, *types.Stats, merry.Error)
- func (c *DummyClient) Find(ctx context.Context, request *protov3.MultiGlobRequest) (*protov3.MultiGlobResponse, *types.Stats, merry.Error)
- func (c *DummyClient) Info(ctx context.Context, request *protov3.MultiMetricsInfoRequest) (*protov3.ZipperInfoResponse, *types.Stats, merry.Error)
- func (c *DummyClient) List(ctx context.Context) (*protov3.ListMetricsResponse, *types.Stats, merry.Error)
- func (c *DummyClient) MaxMetricsPerRequest() int
- func (c *DummyClient) Name() string
- func (c *DummyClient) ProbeTLDs(ctx context.Context) ([]string, merry.Error)
- func (c *DummyClient) SetTLDResponse(response ProbeResponse)
- func (c *DummyClient) SetTagNamesResponse(response []string)
- func (c *DummyClient) SetTagValuesResponse(response []string)
- func (c *DummyClient) Stats(ctx context.Context) (*protov3.MetricDetailsResponse, *types.Stats, merry.Error)
- func (c *DummyClient) TagNames(ctx context.Context, query string, limit int64) ([]string, merry.Error)
- func (c *DummyClient) TagValues(ctx context.Context, query string, limit int64) ([]string, merry.Error)
- type FetchResponse
- type FindResponse
- type InfoResponse
- type ListResponse
- type ProbeResponse
- type StatsResponse
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 (*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 (c *DummyClient) Fetch(ctx context.Context, request *protov3.MultiFetchRequest) (*protov3.MultiFetchResponse, *types.Stats, merry.Error)
func (*DummyClient) Find ¶
func (c *DummyClient) Find(ctx context.Context, request *protov3.MultiGlobRequest) (*protov3.MultiGlobResponse, *types.Stats, merry.Error)
func (*DummyClient) Info ¶
func (c *DummyClient) Info(ctx context.Context, request *protov3.MultiMetricsInfoRequest) (*protov3.ZipperInfoResponse, *types.Stats, merry.Error)
func (*DummyClient) List ¶
func (c *DummyClient) List(ctx context.Context) (*protov3.ListMetricsResponse, *types.Stats, merry.Error)
func (*DummyClient) MaxMetricsPerRequest ¶
func (c *DummyClient) MaxMetricsPerRequest() int
func (*DummyClient) Name ¶
func (c *DummyClient) Name() string
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 (c *DummyClient) Stats(ctx context.Context) (*protov3.MetricDetailsResponse, *types.Stats, merry.Error)
type FetchResponse ¶
type FindResponse ¶
type InfoResponse ¶
type ListResponse ¶
type ProbeResponse ¶
type StatsResponse ¶
Click to show internal directories.
Click to hide internal directories.