blackhole

package
v2.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2016 License: MIT Imports: 8 Imported by: 0

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.0

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.1.0

type HTTPResponse struct {
}

func (*HTTPResponse) WriteTo added in v1.1.0

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

type NoneResponse added in v1.1.0

type NoneResponse struct{}

func (*NoneResponse) WriteTo added in v1.1.0

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