auditorimpl

package
v0.0.0-...-dfbdf22 Latest Latest
Warning

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

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

Documentation

Overview

Package auditorimpl implements the auditor component interface

Index

Constants

View Source
const DefaultRegistryFilename = "registry.json"

DefaultRegistryFilename is the default registry filename

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependencies

type Dependencies struct {
	Log    log.Component
	Config config.Component
}

Dependencies defines the dependencies of the auditor

type JSONRegistry

type JSONRegistry struct {
	Version  int
	Registry map[string]RegistryEntry
}

JSONRegistry represents the registry that will be written on disk

type Provides

type Provides struct {
	Comp auditor.Component
}

Provides contains the auditor component

func NewProvides

func NewProvides(deps Dependencies) Provides

NewProvides creates a new auditor component

type RegistryEntry

type RegistryEntry struct {
	LastUpdated        time.Time
	Offset             string
	TailingMode        string
	IngestionTimestamp int64
}

A RegistryEntry represents an entry in the registry where we keep track of current offsets

Jump to

Keyboard shortcuts

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