grpc

package
v0.12.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2019 License: BSD-2-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClientGRPCGroup

func NewClientGRPCGroup(logger *zap.Logger, config types.BackendV2) (types.BackendServer, *errors.Errors)

func NewClientGRPCGroupWithLimiter

func NewClientGRPCGroupWithLimiter(logger *zap.Logger, config types.BackendV2, limiter limiter.ServerLimiter) (types.BackendServer, *errors.Errors)

Types

type ClientGRPCGroup

type ClientGRPCGroup struct {
	// contains filtered or unexported fields
}

RoundRobin is used to connect to backends inside clientGRPCGroups, implements BackendServer interface

func (ClientGRPCGroup) Backends

func (c ClientGRPCGroup) Backends() []string

func (*ClientGRPCGroup) Children

func (c *ClientGRPCGroup) Children() []types.BackendServer

func (*ClientGRPCGroup) Fetch

func (*ClientGRPCGroup) Find

func (*ClientGRPCGroup) Info

func (*ClientGRPCGroup) List

func (ClientGRPCGroup) MaxMetricsPerRequest

func (c ClientGRPCGroup) MaxMetricsPerRequest() int

func (ClientGRPCGroup) Name

func (c ClientGRPCGroup) Name() string

func (*ClientGRPCGroup) ProbeTLDs

func (c *ClientGRPCGroup) ProbeTLDs(ctx context.Context) ([]string, *errors.Errors)

func (*ClientGRPCGroup) Stats

func (*ClientGRPCGroup) TagNames

func (c *ClientGRPCGroup) TagNames(ctx context.Context, query string, limit int64) ([]string, *errors.Errors)

func (*ClientGRPCGroup) TagValues

func (c *ClientGRPCGroup) TagValues(ctx context.Context, query string, limit int64) ([]string, *errors.Errors)

Jump to

Keyboard shortcuts

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