store

package
v0.0.0-...-b42cbfb Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Name string
}

func (*File) Date

func (f *File) Date() time.Time

func (*File) HistoryMode

func (f *File) HistoryMode() snapshot.HistoryModeType

func (*File) NetworkProtocol

func (f *File) NetworkProtocol() string

func (*File) YearMonth

func (f *File) YearMonth() int

type FileInfo

type FileInfo struct {
	Filename    string
	ChainName   string
	HistoryMode snapshot.HistoryModeType
	BlockHeight int
	BlockHash   string
}

type SnapshotStorage

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

func NewSnapshotStorage

func NewSnapshotStorage(client *storage.Client, bucketName string) *SnapshotStorage

func (*SnapshotStorage) DeleteExpiredSnapshots

func (s *SnapshotStorage) DeleteExpiredSnapshots(ctx context.Context, maxDays int, maxMonths int)

func (*SnapshotStorage) EphemeralUpload

func (s *SnapshotStorage) EphemeralUpload(ctx context.Context, filename, snapshotHeaderOutput string)

func (*SnapshotStorage) GetSnapshotItems

func (s *SnapshotStorage) GetSnapshotItems(ctx context.Context) []snapshot.SnapshotItem

func (*SnapshotStorage) GetTodaySnapshotsItems

func (s *SnapshotStorage) GetTodaySnapshotsItems(ctx context.Context) []snapshot.SnapshotItem

Jump to

Keyboard shortcuts

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