refactor: storage interface

This commit is contained in:
Ilia Denisov
2026-03-13 16:50:13 +02:00
parent 0862dbd1ba
commit 5328f149ed
3 changed files with 30 additions and 23 deletions
+3 -1
View File
@@ -11,9 +11,11 @@ import (
type Storage interface {
UIStorage
Exists(string) (bool, error)
FileExists(string) (bool, error)
ReadFile(string) ([]byte, error)
WriteFile(string, []byte) error
DeleteFile(string) error
ListFiles() ([]string, error)
}
// UIStorage manages Client's data local storing and retrieval.