Add persistent settings (#4751)
This commit is contained in:
parent
7a94bb1e6a
commit
8c9918a770
5 changed files with 181 additions and 2 deletions
10
api/store/types.go
Normal file
10
api/store/types.go
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
package store
|
||||
|
||||
// Provider creates a Persister for given string key
|
||||
type Provider func(string) Store
|
||||
|
||||
// Store can load and store data
|
||||
type Store interface {
|
||||
Load(any) error
|
||||
Save(any) error
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue