file_handlers

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	// CheckFilePath checks if the file path is supported by the handler.
	CheckFilePath(filePath string) bool

	// GetStartTimeEndTime computes the start and end time of the log file.
	GetStartTimeEndTime(filePath string) (*time.Time, *time.Time, error)

	// GetFileSize returns the file size.
	GetFileSize(filePath string) (int64, error)

	// IsFinished checks if the file is completely written and no more updates are expected.
	IsFinished(filePath string) bool

	// SendRuleItems sends rule items to the rule engine.
	SendRuleItems(filePath string, activeTopics mapset.Set[string], ruleItemChan chan rule_engine.RuleItem)
}

Interface defines the interface for handling different file types.

func NewLogHandler

func NewLogHandler() Interface

func NewMcapHandler

func NewMcapHandler() Interface

func NewRos1Handler

func NewRos1Handler() Interface

Jump to

Keyboard shortcuts

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