auditor

package
v0.0.0-...-48ffdc4 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package auditor records the log files the agent is tracking. It tracks filename, time last updated, offset (how far into the file the agent has read), and tailing mode for each log file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component interface {
	Registry

	// Start starts the auditor
	Start()

	// Stop stops the auditor
	Stop()

	// Channel returns the channel to use to communicate with the auditor or nil
	// if the auditor is currently stopped.
	Channel() chan *message.Payload
}

Component is the component type.

type Registry

type Registry interface {
	GetOffset(identifier string) string
	GetTailingMode(identifier string) string
}

Registry holds a list of offsets.

Jump to

Keyboard shortcuts

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