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 Config
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 (*BlackHole) Dispatch ¶
func (this *BlackHole) Dispatch(destination v2net.Destination, payload *alloc.Buffer, ray ray.OutboundRay) error
type Config ¶
type Config struct {
Response *v2ray_core_common_loader.TypedSettings `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
}
func (*Config) Descriptor ¶
func (*Config) GetInternalResponse ¶
func (this *Config) GetInternalResponse() (ResponseConfig, error)
func (*Config) GetResponse ¶
func (m *Config) GetResponse() *v2ray_core_common_loader.TypedSettings
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
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() v2net.NetworkList
type HTTPResponse ¶
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 ¶
func (this *HTTPResponse) WriteTo(writer v2io.Writer)
type NoneResponse ¶
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 ¶
func (this *NoneResponse) WriteTo(v2io.Writer)
Click to show internal directories.
Click to hide internal directories.