grpc

package
v0.0.0-...-b9a9d18 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2019 License: BSD-2-Clause Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClientGRPCGroup

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

func NewClientGRPCGroupWithLimiter

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

Types

type ClientGRPCGroup

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

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

func (ClientGRPCGroup) Backends

func (c ClientGRPCGroup) Backends() []string

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

Jump to

Keyboard shortcuts

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