Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Debug bool `toml:"debug"` LogPath string `toml:"log_path"` HTTP *HTTPConfig `toml:"http"` GRPC *GRPCConfig `toml:"grpc"` }
Config 配置文件对应对象
var ( // CFG 全局配置对象 CFG *Config )
type GRPCConfig ¶
type GRPCConfig struct { Enable bool `toml:"enable"` Address string `toml:"address"` Port int `toml:"port"` }
GRPCConfig grpc监听配置
Click to show internal directories.
Click to hide internal directories.