Initial commit
This commit is contained in:
11
storer.go
Normal file
11
storer.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package store
|
||||
|
||||
import "context"
|
||||
|
||||
type Storer interface {
|
||||
Close()
|
||||
Write(context.Context, string, any) error
|
||||
Delete(context.Context, string, string) error
|
||||
Read(context.Context, string, string, func() any) (any, error)
|
||||
List(context.Context, string, func() any) ([]any, error)
|
||||
}
|
||||
Reference in New Issue
Block a user