Documentation ¶
Index ¶
- func GetIsJSONTag() bool
- func GetMysqlConStr() string
- func GetOutDir() string
- func GetServiceConfig() (name, displayName, desc string)
- func GetSimple() bool
- func GetSingularTable() bool
- func InitFile(filename string) error
- func IsRunTesting() bool
- func SetMysqlDbInfo(info *MysqlDbInfo)
- func SetOutDir(outDir string)
- func SetSingularTable(b bool)
- type CfgBase
- type Config
- type MysqlDbInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetServiceConfig ¶ added in v1.1.0
func GetServiceConfig() (name, displayName, desc string)
GetServiceConfig 获取service配置信息
Types ¶
type CfgBase ¶
type CfgBase struct { SerialNumber string `json:"serial_number" toml:"serial_number"` //版本号 ServiceName string `json:"service_name" toml:"service_name"` //service名字 ServiceDisplayname string `json:"service_displayname" toml:"service_displayname"` //显示名 SerciceDesc string `json:"sercice_desc" toml:"sercice_desc"` //service描述 IsDev bool `json:"is_dev" toml:"is_dev"` //是否是开发版本 }
CfgBase .
type Config ¶
type Config struct { CfgBase MySQLInfo MysqlDbInfo `toml:"mysql_info"` OutDir string `toml:"out_dir"` Simple bool `toml:"simple"` IsJSONTag bool `toml:"isJsonTag"` SingularTable bool `toml:"singular_table"` }
Config .
Click to show internal directories.
Click to hide internal directories.