package config type Oracle struct { Driver string `mapstructure:"driver" json:"driver" yaml:"driver"` // 驱动,固定为'oci8' Address string `mapstructure:"address" json:"address" yaml:"address"` // 数据库服务地址 Name string `mapstructure:"name" json:"name" yaml:"name"` // 数据库名 Port string `mapstructure:"port" json:"port" yaml:"port"` // 端口 User string `mapstructure:"user" json:"user" yaml:"user"` // 用户名 Pwd string `mapstructure:"pwd" json:"pwd" yaml:"pwd"` // 密码 MaxIdleConns int `mapstructure:"max-idle-conns" json:"max-idle-conns" yaml:"max-idle-conns"` // 空闲中的最大连接数 MaxOpenConns int `mapstructure:"max-open-conns" json:"max-open-conns" yaml:"max-open-conns"` // 打开到数据库的最大连接数 }