types

package
v0.0.0-...-ebe581b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnswerCalculateOptions

type AnswerCalculateOptions struct {
	RangeHashes [][]byte
	Timestamp   int64
}

type CalculateOptions

type CalculateOptions struct {
	RangeHash []byte
	Timestamp int64
}

type Material

type Material struct {
	FileID  string
	SliceID string
	NodeID  []byte
	Ranges  []RangeHash
}

type MaterialStorage

type MaterialStorage interface {
	Save(cms []Material) error
	Load(key []byte) (Material, error)
	NewIterator(prefix []byte) ([][]byte, error)
	Update(cms Material, key []byte) error

	Close()
}

type Range

type Range struct {
	Start uint64
	End   uint64
}

type RangeHash

type RangeHash struct {
	Ranges []Range
	Hash   []byte
	Used   bool
}

Jump to

Keyboard shortcuts

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