openreplay/backend/pkg/objectstorage/objectstorage.go
ⵄⵎⵉⵔⵓⵛ f321fccc11
Ux testing backend (#1709)
* feat(backend): added ux-testing support

* feat(backend): added ux-testing module

* feat(http): added bucket name for http service

* feat(backend): fixed small typos in http router

---------

Co-authored-by: Alexander <zavorotynskiy@pm.me>
2023-11-27 15:58:36 +01:00

22 lines
420 B
Go

package objectstorage
import (
"io"
"time"
)
type CompressionType int
const (
NoCompression CompressionType = iota
Gzip
Brotli
)
type ObjectStorage interface {
Upload(reader io.Reader, key string, contentType string, compression CompressionType) error
Get(key string) (io.ReadCloser, error)
Exists(key string) bool
GetCreationTime(key string) *time.Time
GetPreSignedUploadUrl(key string) (string, error)
}