Documentation ¶
Index ¶
- Constants
- Variables
- func DatFileName(from, to uint64, fType string) string
- func FileName(from, to uint64, fileType string) string
- func IdxFileName(from, to uint64, fType string) string
- func IsCorrectFileName(name string) bool
- func IsCorrectHistoryFileName(name string) bool
- func SegmentFileName(from, to uint64, t Type) string
- func TmpFiles(dir string) (res []string, err error)
- type FileInfo
- func FilesWithExt(dir, expectExt string) ([]FileInfo, error)
- func FilterExt(in []FileInfo, expectExt string) (out []FileInfo)
- func IdxFiles(dir string) (res []FileInfo, err error)
- func ParseDir(dir string) (res []FileInfo, err error)
- func ParseFileName(dir, fileName string) (res FileInfo, err error)
- func Segments(dir string) (res []FileInfo, err error)
- type IdxType
- type Type
Constants ¶
View Source
const Erigon2MinSegmentSize = 1_000
View Source
const Erigon2SegmentSize = 500_000
View Source
const Erigon3SeedableSteps = 32
Variables ¶
View Source
var AllSnapshotTypes = []Type{Headers, Bodies, Transactions}
View Source
var (
ErrInvalidFileName = fmt.Errorf("invalid compressed file name")
)
Functions ¶
func DatFileName ¶
func IdxFileName ¶
func IsCorrectFileName ¶
func SegmentFileName ¶
Types ¶
type FileInfo ¶
FileInfo - parsed file metadata
func FilesWithExt ¶
func ParseFileName ¶
func (FileInfo) NeedTorrentFile ¶
func (FileInfo) TorrentFileExists ¶
Click to show internal directories.
Click to hide internal directories.