Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SafeFilename ¶
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.
type KernelSourceConfig ¶
type KernelSourceConfig struct {
WorkerCreator engine.WorkerCreatorFunc
CursorDirectory string
Targets []KernelTargetConfig
}
KernelSourceConfig configures KernelSource.
type KernelTargetConfig ¶
Click to show internal directories.
Click to hide internal directories.