blackhole

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const TransportName = "blackHole"

Variables

View Source
var Transport = BlackHole{}

Functions

This section is empty.

Types

type BlackHole

type BlackHole struct{}

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(_ 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