blackhole

package
v2.1.2+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

type Config struct {
	Response Response
}

type Factory

type Factory struct{}

func (*Factory) Create

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

func (*Factory) StreamCapability

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

type HTTPResponse

type HTTPResponse struct {
}

func (*HTTPResponse) WriteTo

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

type NoneResponse

type NoneResponse struct{}

func (*NoneResponse) WriteTo

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

type Response

type Response interface {
	WriteTo(v2io.Writer)
}

Jump to

Keyboard shortcuts

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