Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultMaxLogSize = 1024 * 1024 DefaultFlushPeriod = 500 * time.Millisecond )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory struct { *zap.SugaredLogger HeaderConfig *header.Config FromBeginning bool FingerprintSize int InitialBufferSize int MaxLogSize int Encoding encoding.Encoding SplitFunc bufio.SplitFunc TrimFunc trim.Func FlushTimeout time.Duration EmitFunc emit.Callback Attributes attrs.Resolver DeleteAtEOF bool }
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 }
func (Metadata) GetFingerprint ¶ added in v0.93.0
func (m Metadata) GetFingerprint() *fingerprint.Fingerprint
type Reader ¶
type Reader struct { *Metadata // contains filtered or unexported fields }
Reader manages a single file
func (*Reader) NameEquals ¶ added in v0.88.0
Click to show internal directories.
Click to hide internal directories.