Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v0.2.11
type Config struct { Codec string `yaml:"codec"` ConnectionTimeout time.Duration `yaml:"connection_timeout"` Cp string `yaml:"cp"` Creds string `yaml:"creds"` Dc string `yaml:"dc"` HeaderTableSize int64 `yaml:"header_table_size"` InitialConnWindowSize int64 `yaml:"initial_conn_window_size"` InitialWindowSize int64 `yaml:"initial_window_size"` KeepaliveParams *KeepaliveParams `yaml:"keepalive_params"` KeepalivePolicy *KeepalivePolicy `yaml:"keepalive_policy"` MaxConcurrentStreams int64 `yaml:"max_concurrent_streams"` MaxHeaderListSize int64 `yaml:"max_header_list_size"` MaxRecvMsgSize int `yaml:"max_recv_msg_size"` MaxSendMsgSize int `yaml:"max_send_msg_size"` ReadBufferSize int64 `yaml:"read_buffer_size"` WriteBufferSize int64 `yaml:"write_buffer_size"` }
func GetDefaultCfg ¶
func GetDefaultCfg() *Config
type KeepaliveParams ¶
type KeepaliveParams struct { MaxConnectionAge time.Duration `yaml:"max_connection_age"` MaxConnectionAgeGrace time.Duration `yaml:"max_connection_age_grace"` MaxConnectionIdle time.Duration `yaml:"max_connection_idle"` Time time.Duration `yaml:"time"` Timeout time.Duration `yaml:"timeout"` }
func (*KeepaliveParams) ToOpts ¶ added in v0.2.11
func (t *KeepaliveParams) ToOpts() grpc.ServerOption
type KeepalivePolicy ¶
type KeepalivePolicy struct { MinTime time.Duration `yaml:"min_time"` PermitWithoutStream bool `yaml:"permit_without_stream"` }
func (*KeepalivePolicy) ToOpts ¶ added in v0.2.11
func (t *KeepalivePolicy) ToOpts() grpc.ServerOption
Click to show internal directories.
Click to hide internal directories.