Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler interface { LoadBpfSendXskMap(ifname string) (int, error) ConfigureBusyPoll(fd int, busyTimeout int, busyBudget int) error Cleanbpf(ifname string) error }
Handler is the interface to the BPF package. The interface exists for testing purposes, allowing unit tests to run without making actual BPF calls.
func NewFakeHandler ¶
func NewFakeHandler() Handler
NewFakeHandler returns a fake implementation of the Handler interface.
func NewHandler ¶
func NewHandler() Handler
NewHandler returns an implementation of the Handler interface.
Click to show internal directories.
Click to hide internal directories.