Versions in this module Expand all Collapse all v0 v0.1.0 Aug 1, 2026 Changes in this version + func SipHash24(key [16]byte, data []byte) uint64 + type Entry struct + BootID string + Fields map[string]string + GID uint32 + MessageID string + PID uint32 + Priority int + Timestamp time.Time + Transport string + UID uint32 + func (e *Entry) Get(key string) string + func (e *Entry) Hostname() string + func (e *Entry) Message() string + func (e *Entry) Realtime() uint64 + func (e *Entry) Seqnum() uint64 + func (e *Entry) String() string + func (e *Entry) SyslogFacility() string + func (e *Entry) SyslogIdentifier() string + func (e *Entry) Unit() string + type File struct + func Open(path string) (*File, error) + func (f *File) ArenaSize() uint64 + func (f *File) Close() error + func (f *File) Entry() *Entry + func (f *File) Exists() bool + func (f *File) FieldValues(name string, limit int) ([]string, bool, error) + func (f *File) Fields() ([]string, error) + func (f *File) HeadEntryRealtime() uint64 + func (f *File) HeadEntrySeqnum() uint64 + func (f *File) HeaderSize() uint64 + func (f *File) NEntries() uint64 + func (f *File) NObjects() uint64 + func (f *File) Next() bool + func (f *File) NextEntry() (*Entry, bool) + func (f *File) Path() string + func (f *File) Previous() bool + func (f *File) ReloadHeader() error + func (f *File) Seek(seqnum uint64) bool + func (f *File) SeekHead() + func (f *File) SeekRealtime(t time.Time) bool + func (f *File) SeekTail() + func (f *File) Signature() string + func (f *File) State() uint8 + func (f *File) TailEntryRealtime() uint64 + func (f *File) TailEntrySeqnum() uint64 + func (f *File) TailObjectOffset() uint64 + type FileHeader struct + ArenaSize uint64 + CompatibleFlags uint32 + DataHashChainDepth uint64 + DataTableOffset uint64 + DataTableSize uint64 + EntryArrayOffset uint64 + FieldHashChainDepth uint64 + FieldTableOffset uint64 + FieldTableSize uint64 + FileID [16]byte + HeadEntryRealtime uint64 + HeadEntrySeqnum uint64 + HeaderSize uint64 + IncompatibleFlags uint32 + MachineID [16]byte + NData uint64 + NEntries uint64 + NEntryArrays uint64 + NFields uint64 + NObjects uint64 + NTags uint64 + Reserved [7]byte + SeqnumID [16]byte + Signature [8]byte + State uint8 + TailEntryArrayNEnts uint32 + TailEntryArrayOffset uint32 + TailEntryBootID [16]byte + TailEntryMonotonic uint64 + TailEntryOffset uint64 + TailEntryRealtime uint64 + TailEntrySeqnum uint64 + TailObjectOffset uint64 + type Journal struct + func OpenJournal(dir, name string) (*Journal, error) + func (j *Journal) Close() error + func (j *Journal) Entry() *Entry + func (j *Journal) FieldValues(name string, limit int) ([]string, bool, error) + func (j *Journal) Fields() ([]string, error) + func (j *Journal) Files() []*File + func (j *Journal) Follow(ctx context.Context, pollInterval time.Duration, fn func(*Entry) bool) error + func (j *Journal) NFiles() int + func (j *Journal) Next() bool + func (j *Journal) NextEntry() (e *Entry, ok bool) + func (j *Journal) Previous() bool + func (j *Journal) Seek(seqnum uint64) bool + func (j *Journal) SeekHead() + func (j *Journal) SeekRealtime(t time.Time) + func (j *Journal) SeekTail() v0.0.1 Aug 1, 2026