internal

package
v0.0.0-...-ae8e89f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL