Documentation ¶
Index ¶
- Variables
- type ServerConf
- func (*ServerConf) Descriptor() ([]byte, []int)
- func (m *ServerConf) GetPort() int32
- func (m *ServerConf) GetType() ServerConf_Type
- func (*ServerConf) ProtoMessage()
- func (m *ServerConf) Reset()
- func (m *ServerConf) String() string
- func (m *ServerConf) XXX_DiscardUnknown()
- func (m *ServerConf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ServerConf) XXX_Merge(src proto.Message)
- func (m *ServerConf) XXX_Size() int
- func (m *ServerConf) XXX_Unmarshal(b []byte) error
- type ServerConf_Type
Constants ¶
This section is empty.
Variables ¶
View Source
var ServerConf_Type_name = map[int32]string{
0: "ECHO",
1: "DISCARD",
}
View Source
var ServerConf_Type_value = map[string]int32{
"ECHO": 0,
"DISCARD": 1,
}
Functions ¶
This section is empty.
Types ¶
type ServerConf ¶
type ServerConf struct { Port *int32 `protobuf:"varint,1,req,name=port" json:"port,omitempty"` Type *ServerConf_Type `protobuf:"varint,2,req,name=type,enum=cloudprober.servers.udp.ServerConf_Type" json:"type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ServerConf) Descriptor ¶
func (*ServerConf) Descriptor() ([]byte, []int)
func (*ServerConf) GetPort ¶
func (m *ServerConf) GetPort() int32
func (*ServerConf) GetType ¶
func (m *ServerConf) GetType() ServerConf_Type
func (*ServerConf) ProtoMessage ¶
func (*ServerConf) ProtoMessage()
func (*ServerConf) Reset ¶
func (m *ServerConf) Reset()
func (*ServerConf) String ¶
func (m *ServerConf) String() string
func (*ServerConf) XXX_DiscardUnknown ¶
func (m *ServerConf) XXX_DiscardUnknown()
func (*ServerConf) XXX_Marshal ¶
func (m *ServerConf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ServerConf) XXX_Merge ¶
func (dst *ServerConf) XXX_Merge(src proto.Message)
func (*ServerConf) XXX_Size ¶
func (m *ServerConf) XXX_Size() int
func (*ServerConf) XXX_Unmarshal ¶
func (m *ServerConf) XXX_Unmarshal(b []byte) error
type ServerConf_Type ¶
type ServerConf_Type int32
const ( // Echos the incoming packet back. // Note that UDP echo server limits reads to 4098 bytes. For messages longer // than 4098 bytes it won't work as expected. ServerConf_ECHO ServerConf_Type = 0 // Discard the incoming packet. Return nothing. ServerConf_DISCARD ServerConf_Type = 1 )
func (ServerConf_Type) Enum ¶
func (x ServerConf_Type) Enum() *ServerConf_Type
func (ServerConf_Type) EnumDescriptor ¶
func (ServerConf_Type) EnumDescriptor() ([]byte, []int)
func (ServerConf_Type) String ¶
func (x ServerConf_Type) String() string
func (*ServerConf_Type) UnmarshalJSON ¶
func (x *ServerConf_Type) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.