Documentation ¶
Overview ¶
Package blackhole is an outbound handler that blocks all connections.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_proxy_blackhole_config_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Response *anypb.Any `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` // contains filtered or unexported fields }
func (*Config) Descriptor
deprecated
func (*Config) GetInternalResponse ¶
func (c *Config) GetInternalResponse() (ResponseConfig, error)
GetInternalResponse converts response settings from proto to internal data structure.
func (*Config) GetResponse ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
type HTTPResponse ¶
type HTTPResponse struct {
// contains filtered or unexported fields
}
func (*HTTPResponse) Descriptor
deprecated
func (*HTTPResponse) Descriptor() ([]byte, []int)
Deprecated: Use HTTPResponse.ProtoReflect.Descriptor instead.
func (*HTTPResponse) ProtoMessage ¶
func (*HTTPResponse) ProtoMessage()
func (*HTTPResponse) ProtoReflect ¶
func (x *HTTPResponse) ProtoReflect() protoreflect.Message
func (*HTTPResponse) Reset ¶
func (x *HTTPResponse) Reset()
func (*HTTPResponse) String ¶
func (x *HTTPResponse) String() string
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler is an outbound connection that silently swallow the entire payload.
type NoneResponse ¶
type NoneResponse struct {
// contains filtered or unexported fields
}
func (*NoneResponse) Descriptor
deprecated
func (*NoneResponse) Descriptor() ([]byte, []int)
Deprecated: Use NoneResponse.ProtoReflect.Descriptor instead.
func (*NoneResponse) ProtoMessage ¶
func (*NoneResponse) ProtoMessage()
func (*NoneResponse) ProtoReflect ¶
func (x *NoneResponse) ProtoReflect() protoreflect.Message
func (*NoneResponse) Reset ¶
func (x *NoneResponse) Reset()
func (*NoneResponse) String ¶
func (x *NoneResponse) String() string
type ResponseConfig ¶
type ResponseConfig interface { // WriteTo writes predefined response to the give buffer. WriteTo(buf.Writer) int32 }
ResponseConfig is the configuration for blackhole responses.
type SimplifiedConfig ¶
type SimplifiedConfig struct {
// contains filtered or unexported fields
}
func (*SimplifiedConfig) Descriptor
deprecated
func (*SimplifiedConfig) Descriptor() ([]byte, []int)
Deprecated: Use SimplifiedConfig.ProtoReflect.Descriptor instead.
func (*SimplifiedConfig) ProtoMessage ¶
func (*SimplifiedConfig) ProtoMessage()
func (*SimplifiedConfig) ProtoReflect ¶
func (x *SimplifiedConfig) ProtoReflect() protoreflect.Message
func (*SimplifiedConfig) Reset ¶
func (x *SimplifiedConfig) Reset()
func (*SimplifiedConfig) String ¶
func (x *SimplifiedConfig) String() string
Click to show internal directories.
Click to hide internal directories.