Versions in this module Expand all Collapse all v0 v0.1.0 May 14, 2023 Changes in this version + const SlotsPerEra + var CompressedBeaconStateType = EntryType + var CompressedSignedBeaconBlockType = EntryType + var EmptyType = EntryType + var ErrNotExist = errors.New("entry does not exist") + var SlotIndexType = EntryType + var VersionType = EntryType + func CoppySnappyEntry(f io.Reader, w io.Writer, sr *snappy.Reader, expectType EntryType) error + func ReadBlockOffset(f io.ReadSeeker, i uint64) (int64, error) + func ReadInt64(f io.Reader) (int64, error) + func ReadSlot(f io.Reader) (common.Slot, error) + func ReadStateOffsetAndSlot(f io.ReadSeeker) (offset int64, slot common.Slot, err error) + func ReadUint64(f io.Reader) (uint64, error) + func SeekBlock(f io.ReadSeeker, i uint64, groupEnd int64) error + func SeekGroupStart(f io.ReadSeeker, groupEnd int64) error + func SeekState(f io.ReadSeeker, groupEnd int64) (slot common.Slot, err error) + func Tell(f io.Seeker) (int64, error) + type EntryType [2]byte + func CopyEntry(f io.Reader, w io.Writer) (EntryType, error) + func ReadHeader(f io.Reader) (EntryType, uint32, error) + type Store struct + Files map[common.Slot]string + func NewStore() *Store + func (s *Store) Block(slot common.Slot, dest common.SSZObj) error + func (s *Store) Bounds() (min, max common.Slot) + func (s *Store) Load(dirPath string) error + func (s *Store) State(slot common.Slot, dest common.SSZObj) error