pktmon

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

View Source
const (
	Name = "pktmon"
)

Variables

View Source
var (
	ErrNilEnricher    = errors.New("enricher is nil")
	ErrUnexpectedExit = errors.New("unexpected exit")
	ErrNilGrpcClient  = errors.New("grpc client is nil")
)

Functions

func New

func New(_ *kcfg.Config) api.Plugin

Types

type GRPCClient

type GRPCClient struct {
	observerv1.ObserverClient
}

type Plugin

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

func (*Plugin) Compile

func (p *Plugin) Compile(_ context.Context) error

func (*Plugin) Generate

func (p *Plugin) Generate(_ context.Context) error

func (*Plugin) GetFlow

func (p *Plugin) GetFlow(ctx context.Context) error

func (*Plugin) Init

func (p *Plugin) Init() error

func (*Plugin) Name

func (p *Plugin) Name() string

func (*Plugin) RunPktMonServer

func (p *Plugin) RunPktMonServer(ctx context.Context) error

func (*Plugin) SetupChannel

func (p *Plugin) SetupChannel(ch chan *v1.Event) error

func (*Plugin) SetupStream

func (p *Plugin) SetupStream() error

func (*Plugin) Start

func (p *Plugin) Start(ctx context.Context) error

func (*Plugin) StartStream

func (p *Plugin) StartStream(ctx context.Context) error

func (*Plugin) Stop

func (p *Plugin) Stop() error

Jump to

Keyboard shortcuts

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