blackhole

package
v2.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2016 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package blackhole is a generated protocol buffer package.

It is generated from these files:

v2ray.com/core/proxy/blackhole/config.proto

It has these top-level messages:

NoneResponse
HTTPResponse
Response
Config

Index

Constants

This section is empty.

Variables

View Source
var Response_Type_name = map[int32]string{
	0: "None",
	1: "HTTP",
}
View Source
var Response_Type_value = map[string]int32{
	"None": 0,
	"HTTP": 1,
}

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, error)

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 `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
}

func (*Config) Descriptor

func (*Config) Descriptor() ([]byte, []int)

func (*Config) GetResponse

func (m *Config) GetResponse() *Response

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) Reset

func (m *Config) Reset()

func (*Config) String

func (m *Config) String() string

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() v2net.NetworkList

type HTTPResponse added in v1.17.1

type HTTPResponse struct {
}

func (*HTTPResponse) AsAny

func (this *HTTPResponse) AsAny() *any.Any

func (*HTTPResponse) Descriptor

func (*HTTPResponse) Descriptor() ([]byte, []int)

func (*HTTPResponse) ProtoMessage

func (*HTTPResponse) ProtoMessage()

func (*HTTPResponse) Reset

func (m *HTTPResponse) Reset()

func (*HTTPResponse) String

func (m *HTTPResponse) String() string

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) AsAny

func (this *NoneResponse) AsAny() *any.Any

func (*NoneResponse) Descriptor

func (*NoneResponse) Descriptor() ([]byte, []int)

func (*NoneResponse) ProtoMessage

func (*NoneResponse) ProtoMessage()

func (*NoneResponse) Reset

func (m *NoneResponse) Reset()

func (*NoneResponse) String

func (m *NoneResponse) String() string

func (*NoneResponse) WriteTo added in v1.17.1

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

type Response added in v1.17.1

type Response struct {
	Type     Response_Type        `protobuf:"varint,1,opt,name=type,enum=v2ray.core.proxy.blackhole.Response_Type" json:"type,omitempty"`
	Settings *google_protobuf.Any `protobuf:"bytes,2,opt,name=settings" json:"settings,omitempty"`
}

func (*Response) Descriptor

func (*Response) Descriptor() ([]byte, []int)

func (*Response) GetInternalResponse

func (this *Response) GetInternalResponse() (ResponseConfig, error)

func (*Response) GetSettings

func (m *Response) GetSettings() *google_protobuf.Any

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) String

func (m *Response) String() string

type ResponseConfig

type ResponseConfig interface {
	AsAny() *any.Any
	WriteTo(v2io.Writer)
}

type Response_Type

type Response_Type int32
const (
	Response_None Response_Type = 0
	Response_HTTP Response_Type = 1
)

func (Response_Type) EnumDescriptor

func (Response_Type) EnumDescriptor() ([]byte, []int)

func (Response_Type) String

func (x Response_Type) String() string

Jump to

Keyboard shortcuts

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