Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory struct { *zap.SugaredLogger Config *Config FromBeginning bool Encoding encoding.Encoding HeaderConfig *header.Config SplitFunc bufio.SplitFunc TrimFunc trim.Func }
func (*Factory) NewFingerprint ¶
func (f *Factory) NewFingerprint(file *os.File) (*fingerprint.Fingerprint, error)
func (*Factory) NewReader ¶
func (f *Factory) NewReader(file *os.File, fp *fingerprint.Fingerprint) (*Reader, error)
type Metadata ¶
type Metadata struct { Fingerprint *fingerprint.Fingerprint Offset int64 FileAttributes map[string]any HeaderFinalized bool FlushState *flush.State }
type Reader ¶
Reader manages a single file
func (*Reader) NameEquals ¶ added in v0.88.0
func (*Reader) NewFingerprintFromFile ¶
func (r *Reader) NewFingerprintFromFile() (*fingerprint.Fingerprint, error)
Click to show internal directories.
Click to hide internal directories.