mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-16 16:07:33 +08:00
use the request context
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
package storage
|
||||
|
||||
import "github.com/mayswind/ezbookkeeping/pkg/core"
|
||||
|
||||
// ObjectStorage represents an object storage to store file object
|
||||
type ObjectStorage interface {
|
||||
Exists(path string) (bool, error)
|
||||
Read(path string) (ObjectInStorage, error)
|
||||
Save(path string, object ObjectInStorage) error
|
||||
Delete(path string) error
|
||||
Exists(ctx core.Context, path string) (bool, error)
|
||||
Read(ctx core.Context, path string) (ObjectInStorage, error)
|
||||
Save(ctx core.Context, path string, object ObjectInStorage) error
|
||||
Delete(ctx core.Context, path string) error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user