vise/persist/persist.go

17 lines
286 B
Go
Raw Permalink Normal View History

2023-04-13 00:42:36 +02:00
package persist
2023-04-13 01:38:33 +02:00
import (
"git.defalsify.org/festive/cache"
"git.defalsify.org/festive/state"
)
2023-04-13 00:42:36 +02:00
type Persister interface {
Serialize() ([]byte, error)
Deserialize(b []byte) error
Save(key string) error
Load(key string) error
2023-04-13 01:38:33 +02:00
GetState() *state.State
GetMemory() cache.Memory
2023-04-13 00:42:36 +02:00
}