visitor

package
v0.65.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2025 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name string, fn CreatorFn)

Types

type CreatorFn

type CreatorFn func(pluginCtx PluginContext, options v1.VisitorPluginOptions) (Plugin, error)

type Plugin

type Plugin interface {
	Name() string
	Start()
	Close() error
}

func Create

func Create(pluginName string, pluginCtx PluginContext, options v1.VisitorPluginOptions) (p Plugin, err error)

func NewVirtualNetPlugin

func NewVirtualNetPlugin(pluginCtx PluginContext, options v1.VisitorPluginOptions) (Plugin, error)

type PluginContext

type PluginContext struct {
	Name           string
	Ctx            context.Context
	VnetController *vnet.Controller
	HandleConn     func(net.Conn)
}

type VirtualNetPlugin

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

func (*VirtualNetPlugin) Close

func (p *VirtualNetPlugin) Close() error

Close initiates the plugin shutdown.

func (*VirtualNetPlugin) Name

func (p *VirtualNetPlugin) Name() string

func (*VirtualNetPlugin) Start

func (p *VirtualNetPlugin) Start()

Jump to

Keyboard shortcuts

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