feat: status api
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user