clients

package
v0.0.0-...-26754de Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type GRPCClientConnConfig

type GRPCClientConnConfig struct {
	Endpoint  string `yaml:"endpoint"`
	UserAgent string `yaml:"user_agent"`

	MaxRetries            int64         `yaml:"max_retries"`
	TimeoutBetweenRetries time.Duration `yaml:"timeout_between_retries"`

	InitTimeout time.Duration `yaml:"init_timeout"`

	EnableCompressor bool `yaml:"enable_compressor"`
}

func (*GRPCClientConnConfig) Validate

func (c *GRPCClientConnConfig) Validate() error

type GRPCClientConnOption

type GRPCClientConnOption func(serverOptions *grpcClientConnOptions)

func GRPCWithClientName

func GRPCWithClientName(clientName string) GRPCClientConnOption

func GRPCWithDialOptions

func GRPCWithDialOptions(dialOpts ...grpc.DialOption) GRPCClientConnOption

Jump to

Keyboard shortcuts

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