ennui

package
v0.0.0-...-381c4e2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DigitWidth = 1
	PageCount  = 1 << (DigitWidth * 4)
)
View Source
const RowSize = sha.ByteSize + 1 + binary.MaxVarintLen64 + binary.MaxVarintLen64

Variables

This section is empty.

Functions

func MakeNoDuplicates

func MakeNoDuplicates(s standort.Standort, path string) (e *ennui, err error)

func MakePermitDuplicates

func MakePermitDuplicates(s standort.Standort, path string) (e *ennui, err error)

Types

type Ennui

type Ennui interface {
	GetEnnui() Ennui

	AddMetadatei(*metadatei.Metadatei, Loc) error
	ReadOneKey(string, *metadatei.Metadatei) (Loc, error)
	ReadManyKeys(string, *metadatei.Metadatei, *[]Loc) error
	ReadAll(*metadatei.Metadatei, *[]Loc) error
	PrintAll() error
	errors.Flusher
	// contains filtered or unexported methods
}

type Loc

type Loc struct {
	Page uint8
	Range
}

func (Loc) IsEmpty

func (l Loc) IsEmpty() bool

func (*Loc) ReadFrom

func (l *Loc) ReadFrom(r io.Reader) (n int64, err error)

func (Loc) String

func (l Loc) String() string

func (*Loc) WriteTo

func (l *Loc) WriteTo(w io.Writer) (n int64, err error)

type Metadatei

type Metadatei = metadatei.Metadatei

type Range

type Range struct {
	Offset, ContentLength int64
}

func (Range) IsEmpty

func (l Range) IsEmpty() bool

func (*Range) ReadFrom

func (l *Range) ReadFrom(r io.Reader) (n int64, err error)

func (*Range) Size

func (l *Range) Size() int

func (Range) String

func (l Range) String() string

func (*Range) WriteTo

func (l *Range) WriteTo(w io.Writer) (n int64, err error)

type Sha

type Sha = sha.Sha

Jump to

Keyboard shortcuts

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