Versions in this module Expand all Collapse all v1 v1.0.0 Feb 8, 2021 Changes in this version + const IndefiniteWait + const SD_JOURNAL_APPEND + const SD_JOURNAL_FIELD_GID + const SD_JOURNAL_FIELD_HOSTNAME + const SD_JOURNAL_FIELD_MACHINE_ID + const SD_JOURNAL_FIELD_MESSAGE + const SD_JOURNAL_FIELD_PID + const SD_JOURNAL_FIELD_SYSTEMD_UNIT + const SD_JOURNAL_FIELD_UID + const SD_JOURNAL_INVALIDATE + const SD_JOURNAL_NOP + var ErrExpired = errors.New("Timeout expired") + type Journal struct + func NewJournal() (*Journal, error) + func NewJournalFromDir(path string) (*Journal, error) + func (j *Journal) AddConjunction() error + func (j *Journal) AddDisjunction() error + func (j *Journal) AddMatch(match string) error + func (j *Journal) Close() error + func (j *Journal) FlushMatches() + func (j *Journal) GetData(field string) (string, error) + func (j *Journal) GetDataValue(field string) (string, error) + func (j *Journal) GetRealtimeUsec() (uint64, error) + func (j *Journal) GetUsage() (uint64, error) + func (j *Journal) Next() (int, error) + func (j *Journal) NextSkip(skip uint64) (uint64, error) + func (j *Journal) Previous() (uint64, error) + func (j *Journal) PreviousSkip(skip uint64) (uint64, error) + func (j *Journal) SeekRealtimeUsec(usec uint64) error + func (j *Journal) SeekTail() error + func (j *Journal) SetDataThreshold(threshold uint64) error + func (j *Journal) Wait(timeout time.Duration) int + type JournalReader struct + func NewJournalReader(config JournalReaderConfig) (*JournalReader, error) + func (r *JournalReader) Close() error + func (r *JournalReader) Follow(until <-chan time.Time, writer io.Writer) (err error) + func (r *JournalReader) Read(b []byte) (int, error) + type JournalReaderConfig struct + Matches []Match + NumFromTail uint64 + Path string + Since time.Duration + type Match struct + Field string + Value string + func (m *Match) String() string