Documentation ¶
Index ¶
- Constants
- Variables
- type ProbeConf
- func (*ProbeConf) Descriptor() ([]byte, []int)
- func (m *ProbeConf) GetPacketsPerProbe() int32
- func (m *ProbeConf) GetPort() int32
- func (m *ProbeConf) GetStatsExportIntervalMsec() int32
- func (m *ProbeConf) GetType() ProbeConf_Type
- func (*ProbeConf) ProtoMessage()
- func (m *ProbeConf) Reset()
- func (m *ProbeConf) String() string
- func (m *ProbeConf) XXX_DiscardUnknown()
- func (m *ProbeConf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ProbeConf) XXX_Merge(src proto.Message)
- func (m *ProbeConf) XXX_Size() int
- func (m *ProbeConf) XXX_Unmarshal(b []byte) error
- type ProbeConf_Type
Constants ¶
View Source
const Default_ProbeConf_PacketsPerProbe int32 = 1
View Source
const Default_ProbeConf_Port int32 = 32212
View Source
const Default_ProbeConf_StatsExportIntervalMsec int32 = 10000
Variables ¶
View Source
var ProbeConf_Type_name = map[int32]string{
0: "INVALID",
1: "ECHO",
2: "DISCARD",
}
View Source
var ProbeConf_Type_value = map[string]int32{
"INVALID": 0,
"ECHO": 1,
"DISCARD": 2,
}
Functions ¶
This section is empty.
Types ¶
type ProbeConf ¶
type ProbeConf struct { // Export stats after these many milliseconds StatsExportIntervalMsec *int32 `` /* 138-byte string literal not displayed */ // 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ProbeConf) Descriptor ¶
func (*ProbeConf) GetPacketsPerProbe ¶
func (*ProbeConf) GetStatsExportIntervalMsec ¶
func (*ProbeConf) GetType ¶
func (m *ProbeConf) GetType() ProbeConf_Type
func (*ProbeConf) ProtoMessage ¶
func (*ProbeConf) ProtoMessage()
func (*ProbeConf) XXX_DiscardUnknown ¶
func (m *ProbeConf) XXX_DiscardUnknown()
func (*ProbeConf) XXX_Marshal ¶
func (*ProbeConf) XXX_Unmarshal ¶
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) Enum ¶
func (x ProbeConf_Type) Enum() *ProbeConf_Type
func (ProbeConf_Type) EnumDescriptor ¶
func (ProbeConf_Type) EnumDescriptor() ([]byte, []int)
func (ProbeConf_Type) String ¶
func (x ProbeConf_Type) String() string
func (*ProbeConf_Type) UnmarshalJSON ¶
func (x *ProbeConf_Type) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.