cache

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashPath

func HashPath(path string) uint32

Hash function that matches the eBPF implementation

func ResolvePath

func ResolvePath(event *models.Event, pc *PathCache) string

Types

type PathCache

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

PathCache stores full paths by hash for quick lookup

func New

func New() *PathCache

func (*PathCache) Get

func (pc *PathCache) Get(hash uint32) (string, bool)

func (*PathCache) Set

func (pc *PathCache) Set(hash uint32, path string)

Jump to

Keyboard shortcuts

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