module

package
v0.0.0-...-96e1573 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AbstractModule

type AbstractModule struct {
	Module
	Spec ModuleSpec

	CollectionSpec *ebpf.CollectionSpec
	Collection     *ebpf.Collection
}

func (*AbstractModule) LoadAndAttach

func (a *AbstractModule) LoadAndAttach() error

func (*AbstractModule) Unload

func (a *AbstractModule) Unload() error

type Module

type Module interface {
	LoadAndAttach() error

	Start() error
	Stop() error

	Unload() error
}

type ModuleSpec

type ModuleSpec struct {

	// optional ELF file where BPF program resudes
	ObjFile string

	// optional HTTP handler
	Handler http.Handler
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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