Documentation ¶
Index ¶
- Variables
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (c *Config) GetInternalResponse() (ResponseConfig, error)
- func (x *Config) GetResponse() *serial.TypedMessage
- func (*Config) ProtoMessage()
- func (x *Config) ProtoReflect() protoreflect.Message
- func (x *Config) Reset()
- func (x *Config) String() string
- type HTTPResponse
- type Handler
- type NoneResponse
- type ResponseConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var File_proxy_blackhole_config_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v1.1.1
type Config struct { Response *serial.TypedMessage `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 (x *Config) GetResponse() *serial.TypedMessage
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
type HTTPResponse ¶ added in v1.17.1
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 ¶ added in v1.17.1
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.
Click to show internal directories.
Click to hide internal directories.