feat: status api

This commit is contained in:
Ilia Denisov
2026-01-07 18:38:06 +02:00
parent 1b0ab7a079
commit 204d3df8cf
20 changed files with 188 additions and 40 deletions
+5
View File
@@ -12,6 +12,10 @@ func NewStorageError(err error) error {
return e.NewRepoError(err)
}
func NewGameNotInitializedError() error {
return e.NewGameNotInitializedError()
}
func NewStateError(msg string) error {
return e.NewGameStateError(msg)
}
@@ -21,6 +25,7 @@ type Storage interface {
Exists(string) (bool, error)
Write(string, encoding.BinaryMarshaler) error
Read(string, encoding.BinaryUnmarshaler) error
ReadSafe(string, encoding.BinaryUnmarshaler) error
}
type repo struct {