package
2.2.26+incompatible
Repository: https://github.com/gochain-io/gochain.git
Documentation: pkg.go.dev

# README

ethdb/s3

Integration testing

To run integration tests, specify the integration tag during tests and pass in the appropriate settings for your S3-compatible bucket:

$ go test -tags integration . -endpoint nyc3.digitaloceanspaces.com -bucket gochain-test -access-key-id 00000000000000000000 -secret-access-key 0000000/00000000000000000000000000000000000

Files on the bucket will be automatically cleaned up after a successful test run.

# Functions

ConfigureDB updates db to archive to S3 if S3 configuration enabled.
NewClient returns a new instance of Client.
NewSegment returns a new instance of Segment.
NewSegmentCompactor returns a new instance of SegmentCompactor.
NewSegmentOpener returns a new instance of SegmentOpener.
SegmentKey returns the key used for the segment on S3.

# Constants

FGetObjectInterval represents the time between attempts to successfully fetch objects from the S3 store.

# Structs

Client represents a client to an S3 compatible bucket.
Segment represents an ethdb.FileSegment stored in S3.
SegmentCompactor wraps ethdb.FileSegmentCompactor and uploads to S3 after compaction.
SegmentIterator represents a wrapper around ethdb.SegmentIterator.
SegmentOpener opens segments as a s3.Segments.