blackhole

package
v1.9.4 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const TransportName = "blackHole"

Variables

This section is empty.

Functions

func New added in v1.9.4

func New() transport.Transport

Types

type BlackHole

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

BlackHole is transport that discards all data

func (*BlackHole) Close

func (h *BlackHole) Close() error

func (*BlackHole) Dial

func (h *BlackHole) Dial(_, _ string) (c net.Conn, err error)

func (*BlackHole) Proxy

func (h *BlackHole) Proxy(ctx context.Context, _ *transport.Request, localAddr chan<- string, _ io.Writer, src io.Reader) error

func (*BlackHole) String

func (h *BlackHole) String() string

Jump to

Keyboard shortcuts

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