forked from mtusi2026/mtusi2026lab4
12 lines
228 B
Go
12 lines
228 B
Go
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)
|
|
}
|