nettest

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2025 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Proxy

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

Proxy

func NewProxy

func NewProxy(name, upstream string) *Proxy

NewProxy returns a new Proxy

func (*Proxy) AddToxic

func (p *Proxy) AddToxic(typ string, upstream bool, toxic toxics.Toxic) (string, error)

AddToxic

func (*Proxy) Close

func (p *Proxy) Close() error

Close

func (*Proxy) Listen

func (p *Proxy) Listen() string

Listen

func (*Proxy) RemoveToxic

func (p *Proxy) RemoveToxic(name string) error

RemoveToxic

Jump to

Keyboard shortcuts

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