Files
FileRelay/internal/storage/storage.go
2026-01-28 20:44:34 +08:00

16 lines
331 B
Go

package storage
import (
"context"
"io"
)
type Storage interface {
Save(ctx context.Context, path string, reader io.Reader) error
Open(ctx context.Context, path string) (io.ReadCloser, error)
Delete(ctx context.Context, path string) error
Exists(ctx context.Context, path string) (bool, error)
}
var GlobalStorage Storage