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.

23 lines
352 B

package conf
// Config app config
type Config struct {
Level string //
Port int // listent port
Database Database
JWT JWT
}
type Database struct {
DSN string // data source name
ShowSQL bool
MaxIdle int
MaxOpen int
Prefix string // table prefix, default is nd_
}
type JWT struct {
Secret string
ExpireDays int64
}