ЛР 5 — асинхронная обработка и версии pipeline
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package storage
|
||||
|
||||
import (
|
||||
"context"
|
||||
"io"
|
||||
)
|
||||
|
||||
type ObjectWriter interface {
|
||||
Put(ctx context.Context, key, contentType string, body io.ReadSeeker, size int64) error
|
||||
Get(ctx context.Context, key string) (io.ReadCloser, error)
|
||||
}
|
||||
Reference in New Issue
Block a user