clientconfig

package
v0.0.0-...-a87a751 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GRPCConfig

type GRPCConfig struct {
	Endpoint  string          `yaml:"endpoint"`
	TLS       TLSConfig       `yaml:"tls"`
	Insecure  bool            `yaml:"insecure"`
	Timeout   time.Duration   `yaml:"timeout"`
	Retry     RetryConfig     `yaml:"retry"`
	KeepAlive KeepAliveConfig `yaml:"keep_alive"`
}

func GetDefaultGrpcConfig

func GetDefaultGrpcConfig() GRPCConfig

type KeepAliveConfig

type KeepAliveConfig struct {
	Time                time.Duration `yaml:"time"`
	Timeout             time.Duration `yaml:"timeout"`
	PermitWithoutStream bool          `yaml:"permit_without_stream"`
}

type RetryConfig

type RetryConfig struct {
	Enabled             bool          `yaml:"enabled"`
	MaxElapsedTime      time.Duration `yaml:"max_elapsed_time"`
	InitialInterval     time.Duration `yaml:"initial_interval"`
	Multiplier          float64       `yaml:"multiplier"`
	RandomizationFactor float64       `yaml:"randomization_factor"`
}

func GetDefaultRetryConfig

func GetDefaultRetryConfig() RetryConfig

type TLSConfig

type TLSConfig struct {
	CertFile string `yaml:"cert_file"`
	KeyFile  string `yaml:"key_file"`
	CAFile   string `yaml:"ca_file"`
}

Jump to

Keyboard shortcuts

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