mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
refactor and to go mod
This commit is contained in:
18
server/settings/settings.go
Normal file
18
server/settings/settings.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package settings
|
||||
|
||||
var (
|
||||
tdb *TDB
|
||||
Path string
|
||||
ReadOnly bool
|
||||
)
|
||||
|
||||
func InitSets(readOnly bool) {
|
||||
ReadOnly = readOnly
|
||||
tdb = NewTDB()
|
||||
loadBTSets()
|
||||
Migrate()
|
||||
}
|
||||
|
||||
func CloseDB() {
|
||||
tdb.CloseDB()
|
||||
}
|
||||
Reference in New Issue
Block a user