blackhole

package
v1.24.4 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2016 License: MIT Imports: 8 Imported by: 8 modules, 16 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlackHole

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

BlackHole is an outbound connection that sliently swallow the entire payload.

func NewBlackHole

func NewBlackHole(space app.Space, config *Config, meta *proxy.OutboundHandlerMeta) *BlackHole

func (*BlackHole) Dispatch

func (this *BlackHole) Dispatch(destination v2net.Destination, payload *alloc.Buffer, ray ray.OutboundRay) error

type Config added in v1.1.1

type Config struct {
	Response Response
}

type Factory added in v1.17.1

type Factory struct{}

func (*Factory) Create added in v1.17.1

func (this *Factory) Create(space app.Space, config interface{}, meta *proxy.OutboundHandlerMeta) (proxy.OutboundHandler, error)

func (*Factory) StreamCapability added in v1.17.1

func (this *Factory) StreamCapability() internet.StreamConnectionType

type HTTPResponse added in v1.17.1

type HTTPResponse struct {
}

func (*HTTPResponse) WriteTo added in v1.17.1

func (this *HTTPResponse) WriteTo(writer v2io.Writer)

type NoneResponse added in v1.17.1

type NoneResponse struct{}

func (*NoneResponse) WriteTo added in v1.17.1

func (this *NoneResponse) WriteTo(writer v2io.Writer)

type Response added in v1.17.1

type Response interface {
	WriteTo(v2io.Writer)
}

Jump to

Keyboard shortcuts

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