Add persistent settings (#4751)

This commit is contained in:
andig 2022-10-23 13:27:49 +02:00 • committed by GitHub
parent 7a94bb1e6a
commit 8c9918a770
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 181 additions and 2 deletions

10
api/store/types.go Normal file
View 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
}