Documentation ¶
Overview ¶
Package blackhole is an outbound handler that blocks all connections.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v1.1.0
type Config struct {
Response *v2ray_core_common_serial.TypedMessage `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
}
func (*Config) Descriptor ¶ added in v1.1.0
func (*Config) GetInternalResponse ¶ added in v1.1.0
func (c *Config) GetInternalResponse() (ResponseConfig, error)
GetInternalResponse converts response settings from proto to internal data structure.
func (*Config) GetResponse ¶ added in v1.1.0
func (m *Config) GetResponse() *v2ray_core_common_serial.TypedMessage
func (*Config) ProtoMessage ¶ added in v1.1.0
func (*Config) ProtoMessage()
type HTTPResponse ¶ added in v1.1.0
type HTTPResponse struct { }
func (*HTTPResponse) Descriptor ¶ added in v1.1.0
func (*HTTPResponse) Descriptor() ([]byte, []int)
func (*HTTPResponse) ProtoMessage ¶ added in v1.1.0
func (*HTTPResponse) ProtoMessage()
func (*HTTPResponse) Reset ¶ added in v1.1.0
func (m *HTTPResponse) Reset()
func (*HTTPResponse) String ¶ added in v1.1.0
func (m *HTTPResponse) String() string
func (*HTTPResponse) WriteTo ¶ added in v1.1.0
func (*HTTPResponse) WriteTo(writer buf.Writer)
WriteTo implements ResponseConfig.WriteTo().
type Handler ¶ added in v1.1.0
type Handler struct {
// contains filtered or unexported fields
}
Handler is an outbound connection that silently swallow the entire payload.
type NoneResponse ¶ added in v1.1.0
type NoneResponse struct { }
func (*NoneResponse) Descriptor ¶ added in v1.1.0
func (*NoneResponse) Descriptor() ([]byte, []int)
func (*NoneResponse) ProtoMessage ¶ added in v1.1.0
func (*NoneResponse) ProtoMessage()
func (*NoneResponse) Reset ¶ added in v1.1.0
func (m *NoneResponse) Reset()
func (*NoneResponse) String ¶ added in v1.1.0
func (m *NoneResponse) String() string
func (*NoneResponse) WriteTo ¶ added in v1.1.0
func (*NoneResponse) WriteTo(buf.Writer)
WriteTo implements ResponseConfig.WriteTo().
type ResponseConfig ¶ added in v1.1.0
type ResponseConfig interface { // WriteTo writes predefined response to the give buffer. WriteTo(buf.Writer) }
ResponseConfig is the configuration for blackhole responses.
Click to show internal directories.
Click to hide internal directories.