Documentation ¶
Index ¶
- func New(logger *zap.Logger, config types.BackendV2) (types.ServerClient, *errors.Errors)
- func NewWithLimiter(logger *zap.Logger, config types.BackendV2, limiter *limiter.ServerLimiter) (types.ServerClient, *errors.Errors)
- type GraphiteGroup
- func (c GraphiteGroup) Backends() []string
- func (c *GraphiteGroup) Fetch(ctx context.Context, request *protov3.MultiFetchRequest) (*protov3.MultiFetchResponse, *types.Stats, *errors.Errors)
- func (c *GraphiteGroup) Find(ctx context.Context, request *protov3.MultiGlobRequest) (*protov3.MultiGlobResponse, *types.Stats, *errors.Errors)
- func (c *GraphiteGroup) Info(ctx context.Context, request *protov3.MultiMetricsInfoRequest) (*protov3.ZipperInfoResponse, *types.Stats, *errors.Errors)
- func (c *GraphiteGroup) List(ctx context.Context) (*protov3.ListMetricsResponse, *types.Stats, *errors.Errors)
- func (c GraphiteGroup) MaxMetricsPerRequest() int
- func (c GraphiteGroup) Name() string
- func (c *GraphiteGroup) ProbeTLDs(ctx context.Context) ([]string, *errors.Errors)
- func (c *GraphiteGroup) Stats(ctx context.Context) (*protov3.MetricDetailsResponse, *types.Stats, *errors.Errors)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWithLimiter ¶
func NewWithLimiter(logger *zap.Logger, config types.BackendV2, limiter *limiter.ServerLimiter) (types.ServerClient, *errors.Errors)
Types ¶
type GraphiteGroup ¶
type GraphiteGroup struct {
// contains filtered or unexported fields
}
RoundRobin is used to connect to backends inside clientGroups, implements ServerClient interface
func (GraphiteGroup) Backends ¶
func (c GraphiteGroup) Backends() []string
func (*GraphiteGroup) Fetch ¶
func (c *GraphiteGroup) Fetch(ctx context.Context, request *protov3.MultiFetchRequest) (*protov3.MultiFetchResponse, *types.Stats, *errors.Errors)
func (*GraphiteGroup) Find ¶
func (c *GraphiteGroup) Find(ctx context.Context, request *protov3.MultiGlobRequest) (*protov3.MultiGlobResponse, *types.Stats, *errors.Errors)
func (*GraphiteGroup) Info ¶
func (c *GraphiteGroup) Info(ctx context.Context, request *protov3.MultiMetricsInfoRequest) (*protov3.ZipperInfoResponse, *types.Stats, *errors.Errors)
func (*GraphiteGroup) List ¶
func (c *GraphiteGroup) List(ctx context.Context) (*protov3.ListMetricsResponse, *types.Stats, *errors.Errors)
func (GraphiteGroup) MaxMetricsPerRequest ¶
func (c GraphiteGroup) MaxMetricsPerRequest() int
func (GraphiteGroup) Name ¶
func (c GraphiteGroup) Name() string
Click to show internal directories.
Click to hide internal directories.