up to q
This commit is contained in:
13
storage.go
13
storage.go
@@ -6,13 +6,6 @@ type Storage struct {
|
||||
driver Driver
|
||||
}
|
||||
|
||||
type Driver interface {
|
||||
Close() error
|
||||
ForEach(context.Context, func(string, []byte) error) error
|
||||
Get(context.Context, string) ([]byte, error)
|
||||
Set(context.Context, string, []byte) error
|
||||
}
|
||||
|
||||
func NewTestStorage() Storage {
|
||||
return Storage{driver: NewTestDB()}
|
||||
}
|
||||
@@ -20,3 +13,9 @@ func NewTestStorage() Storage {
|
||||
func NewStorage(driver Driver) Storage {
|
||||
return Storage{driver: driver}
|
||||
}
|
||||
|
||||
func (s Storage) Enqueue(ctx context.Context, m Message) error {
|
||||
}
|
||||
|
||||
func (s Storage) Dequeue(ctx context.Context, m Message) error {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user