kernel

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SafeFilename

func SafeFilename(database, table string) string

SafeFilename creates a Linux filesystem-safe filename from database and table names. It prefixes the name with "kernel_" and uses a short hash to avoid length issues.

Types

type KernelSource

type KernelSource struct {
	// contains filtered or unexported fields
}

KernelSource implements the types.Source interface for reading kernel logs.

func NewKernelSource

func NewKernelSource(config KernelSourceConfig) (*KernelSource, error)

NewKernelSource creates a new KernelSource.

func (*KernelSource) Close

func (s *KernelSource) Close() error

Close stops reading kernel logs and waits for goroutines to finish.

func (*KernelSource) Name

func (s *KernelSource) Name() string

Name returns the name of the source.

func (*KernelSource) Open

func (s *KernelSource) Open(ctx context.Context) error

Open starts reading kernel logs.

type KernelSourceConfig

type KernelSourceConfig struct {
	WorkerCreator   engine.WorkerCreatorFunc
	CursorDirectory string
	Targets         []KernelTargetConfig
}

KernelSourceConfig configures KernelSource.

type KernelTargetConfig

type KernelTargetConfig struct {
	Database       string
	Table          string
	PriorityFilter string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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