v2

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: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(logger *zap.Logger, config types.BackendV2, tldCacheDisabled bool) (types.BackendServer, merry.Error)

func NewWithLimiter

func NewWithLimiter(logger *zap.Logger, config types.BackendV2, tldCacheDisabled bool, l limiter.ServerLimiter) (types.BackendServer, merry.Error)

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 (*ClientProtoV2Group) Find

func (*ClientProtoV2Group) Info

func (*ClientProtoV2Group) List

func (ClientProtoV2Group) MaxMetricsPerRequest

func (c ClientProtoV2Group) MaxMetricsPerRequest() int

func (ClientProtoV2Group) Name

func (c ClientProtoV2Group) Name() string

func (*ClientProtoV2Group) ProbeTLDs

func (c *ClientProtoV2Group) ProbeTLDs(ctx context.Context) ([]string, merry.Error)

func (*ClientProtoV2Group) Stats

func (*ClientProtoV2Group) TagNames

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

func (*ClientProtoV2Group) TagValues

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

Jump to

Keyboard shortcuts

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