Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitConfig ¶
func InitConfig()
Types ¶
type Client ¶
func NewClient ¶
func NewClient(sd *entity.EntityDesc, ss entity.IEntity, intercepter ...entity.ServerInterceptor) *Client
type Config ¶
type Config struct { Env string `yaml:"env"` // env: product/test/dev RunEnv string `yaml:"run_env"` // run_env: host,k8s LogFile string `yaml:"log_file"` // log_file: gate.log LogLevel string `yaml:"log_level"` // log_level: debug NetTimeout string `yaml:"net_timeout"` // net_timeout: 1000 SendSize string `yaml:"send_size"` // send_size: ReadSize string `yaml:"read_size"` // read_size: RsaKey string `yaml:"rsa_key"` // rsa_key: rsa.key RsaCertificate string `yaml:"rsa_certificate"` // rsa_certificate: rsa.crt CompressConnection string `yaml:"compress_connection"` // compress_connection: false EncryptConnection string `yaml:"encrypt_connection"` // encrypt_connection: false HeartbeatCheckInterval string `yaml:"heartbeat_check_interval"` // heartbeat_check_interval: 0 Gates []conf.NetConf `yaml:"gates"` }
var CFG Config
Click to show internal directories.
Click to hide internal directories.