Documentation ¶ Index ¶ Constants func New() transport.Transport type BlackHole func (h *BlackHole) Close() error func (h *BlackHole) Dial(_, _ string) (c net.Conn, err error) func (h *BlackHole) Proxy(ctx context.Context, _ *transport.Request, localAddr chan<- string, ...) error func (h *BlackHole) String() string 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 Source Files ¶ View all Source files blackhole.go Click to show internal directories. Click to hide internal directories.