Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBDescriptor ¶
type DBDescriptor struct { // 数据库地址 Host string `yaml:"host"` // 数据库名称 Name string `yaml:"name" ` // 用户名称 User string `yaml:"user" ` // 用户密码 Password string `yaml:"password" ` // 端口号 Port string `yaml:"port" ` }
func (*DBDescriptor) ConfigByYaml ¶
func (descriptor *DBDescriptor) ConfigByYaml(fileName string) (*DBDescriptor, error)
func (*DBDescriptor) String ¶
func (descriptor *DBDescriptor) String() string
Click to show internal directories.
Click to hide internal directories.