mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
18 lines
304 B
Go
18 lines
304 B
Go
package bolt
|
|
|
|
import (
|
|
"github.com/asdine/storm"
|
|
)
|
|
|
|
type ConfigStore struct {
|
|
DB *storm.DB
|
|
}
|
|
|
|
func (c ConfigStore) Get(name string, to interface{}) error {
|
|
return c.DB.Get("config", name, to)
|
|
}
|
|
|
|
func (c ConfigStore) Save(name string, from interface{}) error {
|
|
return c.DB.Set("config", name, from)
|
|
}
|