Back to

Package broadcast

Latest Go to latest

The highest tagged major version is .

Published: Dec 11, 2019 | License: BSD-2-Clause | Module:


type BroadcastGroup

type BroadcastGroup struct {
	// contains filtered or unexported fields

func NewBroadcastGroup

func NewBroadcastGroup(logger *zap.Logger, groupName string, servers []types.ServerClient, expireDelaySec int32, concurencyLimit int, timeout types.Timeouts) (*BroadcastGroup, *errors.Errors)

func NewBroadcastGroupWithLimiter

func NewBroadcastGroupWithLimiter(logger *zap.Logger, groupName string, servers []types.ServerClient, serverNames []string, pathCache pathcache.PathCache, limiter *limiter.ServerLimiter, timeout types.Timeouts) (*BroadcastGroup, *errors.Errors)

func (BroadcastGroup) Backends

func (bg BroadcastGroup) Backends() []string

func (*BroadcastGroup) Fetch

func (bg *BroadcastGroup) Fetch(ctx context.Context, request *protov3.MultiFetchRequest) (*protov3.MultiFetchResponse, *types.Stats, *errors.Errors)

func (*BroadcastGroup) Find

func (bg *BroadcastGroup) Find(ctx context.Context, request *protov3.MultiGlobRequest) (*protov3.MultiGlobResponse, *types.Stats, *errors.Errors)

func (*BroadcastGroup) Info

func (bg *BroadcastGroup) Info(ctx context.Context, request *protov3.MultiMetricsInfoRequest) (*protov3.ZipperInfoResponse, *types.Stats, *errors.Errors)

func (*BroadcastGroup) List

func (bg *BroadcastGroup) List(ctx context.Context) (*protov3.ListMetricsResponse, *types.Stats, *errors.Errors)

func (BroadcastGroup) MaxMetricsPerRequest

func (bg BroadcastGroup) MaxMetricsPerRequest() int

func (BroadcastGroup) Name

func (bg BroadcastGroup) Name() string

func (*BroadcastGroup) ProbeTLDs

func (bg *BroadcastGroup) ProbeTLDs(ctx context.Context) ([]string, *errors.Errors)

func (*BroadcastGroup) Stats

func (bg *BroadcastGroup) Stats(ctx context.Context) (*protov3.MetricDetailsResponse, *types.Stats, *errors.Errors)

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier