Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BlobNotFoundError = errors.New("blob not found")
Functions ¶
This section is empty.
Types ¶
type BlobReader ¶
type BlobStore ¶
type BlobStore interface { Read(cxt context.Context, id Id) ([]byte, error) Upload(ctx context.Context, r io.Reader) (UploadToken, error) CommitUpload(tr fdb.Transaction, uploadToken UploadToken) (Id, error) Create(ctx context.Context, r io.Reader) (Id, error) BlobReader(id Id) (BlobReader, error) Len(id Id) (int, error) CreatedAt(id Id) (time.Time, error) }
type Option ¶
type Option func(br *fdbBlobStore) error
func WithChunkSize ¶
type UploadToken ¶ added in v0.4.0
type UploadToken interface {
// contains filtered or unexported methods
}
Click to show internal directories.
Click to hide internal directories.