dynamo

package
v0.0.0-...-927d137 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultSectorSize = 1 << 16

	FileMetaKey    = "file-meta-v1"
	FileDataPrefix = "file-v1-"
	FileLockPrefix = "lock-global-v1-"

	HKey = "hash_key"
	RKey = "range_key"
)

Variables

View Source
var SectorNotFoundErr = errors.New("sector not found")

Functions

This section is empty.

Types

type FileMetaV1V2

type FileMetaV1V2 struct {
	MetaVersion int    `json:"meta_version"`
	SectorSize  int64  `json:"sector_size"`
	OrigName    string `json:"orig_name"`
	RandID      string `json:"rand_id"`
	DataRowKey  string `json:"data_row_key"`
	LockRowKey  string `json:"lock_row_key"`
	CompressAlg string `json:"compress_alg"`

	// v2 only fields
	FileSize int64    `json:"file_size"`
	Sectors  []string `json:"sectors"`
}

Jump to

Keyboard shortcuts

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