refactor: storage interface
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user