mirror of
https://github.com/ZSCNetSupportDept/scheduler.git
synced 2025-10-28 20:45:05 +08:00
添加 config load
This commit is contained in:
16
config/model.go
Normal file
16
config/model.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package config
|
||||
|
||||
var (
|
||||
ListenPort int
|
||||
File string
|
||||
DB database
|
||||
)
|
||||
|
||||
type database struct {
|
||||
Path string
|
||||
//Port string
|
||||
//User string
|
||||
//Password string
|
||||
|
||||
// enable if you want use an instance other than SQLite
|
||||
}
|
||||
Reference in New Issue
Block a user