database

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueryFilter

type QueryFilter struct {
	StartTime       *time.Time
	EndTime         *time.Time
	ProcessFilter   string
	OperationFilter []string
	FilenamePattern string
	PID             *uint32
	Limit           int
	Offset          int
}

QueryFilter represents search criteria for querying events

type SQLiteDB

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

func NewSQLiteDB

func NewSQLiteDB(dbPath string) (*SQLiteDB, error)

func (*SQLiteDB) Close

func (s *SQLiteDB) Close()

func (*SQLiteDB) CountEvents

func (s *SQLiteDB) CountEvents(filter QueryFilter) (int, error)

CountEvents returns the total number of events matching the filter

func (*SQLiteDB) LogEvent

func (s *SQLiteDB) LogEvent(event models.EventOutput) error

func (*SQLiteDB) QueryEvents

func (s *SQLiteDB) QueryEvents(filter QueryFilter) ([]models.EventOutput, error)

QueryEvents retrieves events from the database based on filters

Jump to

Keyboard shortcuts

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