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