Documentation
¶
Index ¶
- Constants
- Variables
- type ProbeConf
- func (*ProbeConf) Descriptor() ([]byte, []int)deprecated
- func (x *ProbeConf) GetPacketsPerProbe() int32
- func (x *ProbeConf) GetPort() int32
- func (x *ProbeConf) GetType() ProbeConf_Type
- func (*ProbeConf) ProtoMessage()
- func (x *ProbeConf) ProtoReflect() protoreflect.Message
- func (x *ProbeConf) Reset()
- func (x *ProbeConf) String() string
- type ProbeConf_Type
- func (ProbeConf_Type) Descriptor() protoreflect.EnumDescriptor
- func (x ProbeConf_Type) Enum() *ProbeConf_Type
- func (ProbeConf_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProbeConf_Type) Number() protoreflect.EnumNumber
- func (x ProbeConf_Type) String() string
- func (ProbeConf_Type) Type() protoreflect.EnumType
- func (x *ProbeConf_Type) UnmarshalJSON(b []byte) errordeprecated
Constants ¶
View Source
const ( Default_ProbeConf_Port = int32(32212) Default_ProbeConf_PacketsPerProbe = int32(1) )
Default values for ProbeConf fields.
Variables ¶
View Source
var ( ProbeConf_Type_name = map[int32]string{ 0: "INVALID", 1: "ECHO", 2: "DISCARD", } ProbeConf_Type_value = map[string]int32{ "INVALID": 0, "ECHO": 1, "DISCARD": 2, } )
Enum value maps for ProbeConf_Type.
View Source
var File_github_com_google_cloudprober_probes_udplistener_proto_config_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ProbeConf ¶
type ProbeConf struct { // Port to listen. Port *int32 `protobuf:"varint,3,opt,name=port,def=32212" json:"port,omitempty"` Type *ProbeConf_Type `protobuf:"varint,4,opt,name=type,enum=cloudprober.probes.udplistener.ProbeConf_Type" json:"type,omitempty"` // Number of packets sent in a single probe. PacketsPerProbe *int32 `protobuf:"varint,5,opt,name=packets_per_probe,json=packetsPerProbe,def=1" json:"packets_per_probe,omitempty"` // contains filtered or unexported fields }
func (*ProbeConf) Descriptor
deprecated
func (*ProbeConf) GetPacketsPerProbe ¶
func (*ProbeConf) GetType ¶
func (x *ProbeConf) GetType() ProbeConf_Type
func (*ProbeConf) ProtoMessage ¶
func (*ProbeConf) ProtoMessage()
func (*ProbeConf) ProtoReflect ¶ added in v0.10.8
func (x *ProbeConf) ProtoReflect() protoreflect.Message
type ProbeConf_Type ¶
type ProbeConf_Type int32
Probe response to an incoming packet: echo back or discard.
const ( ProbeConf_INVALID ProbeConf_Type = 0 ProbeConf_ECHO ProbeConf_Type = 1 ProbeConf_DISCARD ProbeConf_Type = 2 )
func (ProbeConf_Type) Descriptor ¶ added in v0.10.8
func (ProbeConf_Type) Descriptor() protoreflect.EnumDescriptor
func (ProbeConf_Type) Enum ¶
func (x ProbeConf_Type) Enum() *ProbeConf_Type
func (ProbeConf_Type) EnumDescriptor
deprecated
func (ProbeConf_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProbeConf_Type.Descriptor instead.
func (ProbeConf_Type) Number ¶ added in v0.10.8
func (x ProbeConf_Type) Number() protoreflect.EnumNumber
func (ProbeConf_Type) String ¶
func (x ProbeConf_Type) String() string
func (ProbeConf_Type) Type ¶ added in v0.10.8
func (ProbeConf_Type) Type() protoreflect.EnumType
func (*ProbeConf_Type) UnmarshalJSON
deprecated
func (x *ProbeConf_Type) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
Click to show internal directories.
Click to hide internal directories.