counter

package
v0.0.0-...-9ec06b4 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

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

func New

func New(name string, p *ebpf.Program, m *ebpf.Map) (*Counter, error)

func (*Counter) Get

func (c *Counter) Get(ctx context.Context) (CounterResult, error)

type CounterResult

type CounterResult struct {
	Icmp uint32
	Tcp  uint32
	Udp  uint32
}

Jump to

Keyboard shortcuts

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