package
Version:
v0.0.0-...-608e6a2
Opens a new window with list of versions in this module.
Published: Aug 24, 2022
License: GPL-3.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
GrpcPool *GrpcPoolConfig `yaml:"grpc_pool" json:"grpc_pool"`
GrpcKeepalive *GrpcKeepaliveConfig `yaml:"grpc_keepalive" json:"grpc_keepalive"`
TlsEnable bool `yaml:"tls_enable" json:"tls_enable"`
TlsConfig *tls.Config `yaml:"tls_config" json:"tls_config"`
}
type GrpcKeepaliveConfig struct {
Time time.Duration `yaml:"time" json:"time"`
Timeout time.Duration `yaml:"timeout" json:"timeout"`
PermitWithoutStream bool `yaml:"permit_without_stream" json:"permit_without_stream"`
}
type GrpcPoolConfig struct {
Enable bool `yaml:"enable" json:"enable"`
InitialCap int `yaml:"initial_cap" json:"initial_cap"`
MaxCap int `yaml:"max_cap" json:"max_cap"`
MaxIdle int `yaml:"max_idle" json:"max_idle"`
IdleTimeout time.Duration `yaml:"idle_timeout" json:"idle_timeout"`
}
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.