internal

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckVersionAndDB

func CheckVersionAndDB(
	dataDir string,
) (int64, dbm.BackendType, error)

CheckVersion gets the height of this node

func Compress

func Compress(homeDir string, chainID string, backendType dbm.BackendType, blockHeight int64, uploader Uploader, keepLocal bool, nodeType string) error

func GetChainID

func GetChainID(homeDir string) (string, error)

GetChainID returns the chain ID of the chain

func LoadConfig

func LoadConfig() (aws.Config, error)

Types

type GCSUploader added in v0.1.2

type GCSUploader struct {
	// contains filtered or unexported fields
}

func NewGCSUploader added in v0.1.2

func NewGCSUploader(bucket string) (*GCSUploader, error)

func (*GCSUploader) Upload added in v0.1.2

func (u *GCSUploader) Upload(reader io.Reader, filename string) error

type ProgressReader added in v0.1.1

type ProgressReader struct {
	// contains filtered or unexported fields
}

func (*ProgressReader) Read added in v0.1.1

func (pr *ProgressReader) Read(p []byte) (int, error)

type S3Uploader

type S3Uploader struct {
	// contains filtered or unexported fields
}

func NewS3Uploader

func NewS3Uploader(bucket string, cfg aws.Config) (*S3Uploader, error)

func (*S3Uploader) Upload

func (u *S3Uploader) Upload(reader io.Reader, filename string) error

type Uploader

type Uploader interface {
	Upload(reader io.Reader, filename string) error
}

Jump to

Keyboard shortcuts

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