Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Endpoints []string `json:"endpoints"`
AutoSyncInterval time.Duration `json:"auto_sync_interval"`
DialTimeout time.Duration `json:"dial_timeout"`
DialKeepAliveTime time.Duration `json:"dial_keep_alive_time"`
DialKeepAliveTimeout time.Duration `json:"dial_keep_alive_timeout"`
MaxCallSendMsgSize int `json:"max_send_size"`
MaxCallRecvMsgSize int `json:"max_recv_size"`
Username string `json:"username"`
Name string `json:"name"`
Password string `json:"password"`
RejectOldCluster bool `json:"reject_old_cluster"`
PermitWithoutStream bool `json:"permit_without_stream"`
DialOptions []grpc.DialOption `json:"-"`
}
func DefaultCfg ¶
func DefaultCfg() *Config
Click to show internal directories.
Click to hide internal directories.