Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlobStorage ¶
type BlobStorage interface { Upload(ctx context.Context, block *api.Block, compression api.Compression) (string, error) UploadRaw(ctx context.Context, rawBlockData *RawBlockData) (string, error) Download(ctx context.Context, metadata *api.BlockMetadata) (*api.Block, error) PreSign(ctx context.Context, objectKey string) (string, error) }
func WithBlobStorageFactory ¶
func WithBlobStorageFactory(params BlobStorageFactoryParams) (BlobStorage, error)
type BlobStorageFactory ¶
type BlobStorageFactory interface {
Create() (BlobStorage, error)
}
type BlobStorageFactoryParams ¶
type BlobStorageFactoryParams struct { fx.In fxparams.Params S3 BlobStorageFactory `name:"blobstorage/s3"` GCS BlobStorageFactory `name:"blobstorage/gcs"` }
type RawBlockData ¶
type RawBlockData struct { Blockchain common.Blockchain SideChain api.SideChain Network common.Network BlockMetadata *api.BlockMetadata BlockData []byte BlockDataCompression api.Compression }
Click to show internal directories.
Click to hide internal directories.