clients

package
v0.0.0-...-1c20ad9 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 License: Apache-2.0 Imports: 7 Imported by: 8

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