You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
280 B
17 lines
280 B
2 years ago
|
package conf
|
||
|
|
||
|
// Config app config
|
||
|
type Config struct {
|
||
|
Level string //
|
||
|
Port int // listent port
|
||
|
Database Database
|
||
|
}
|
||
|
|
||
|
type Database struct {
|
||
|
DSN string // data source name
|
||
|
ShowSQL bool
|
||
|
MaxIdle int
|
||
|
MaxOpen int
|
||
|
Prefix string // table prefix, default is nd_
|
||
|
}
|