Documentation
¶
Index ¶
- Constants
- Variables
- type Constants
- type DataNode
- func (*DataNode) Descriptor() ([]byte, []int)deprecated
- func (x *DataNode) GetName() string
- func (x *DataNode) GetPort() string
- func (x *DataNode) GetTimestampUsec() []byte
- func (x *DataNode) GetType() DataNode_Type
- func (*DataNode) ProtoMessage()
- func (x *DataNode) ProtoReflect() protoreflect.Message
- func (x *DataNode) Reset()
- func (x *DataNode) String() string
- type DataNode_Type
- func (DataNode_Type) Descriptor() protoreflect.EnumDescriptor
- func (x DataNode_Type) Enum() *DataNode_Type
- func (DataNode_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x DataNode_Type) Number() protoreflect.EnumNumber
- func (x DataNode_Type) String() string
- func (DataNode_Type) Type() protoreflect.EnumType
- func (x *DataNode_Type) UnmarshalJSON(b []byte) errordeprecated
- type Msg
- func (*Msg) Descriptor() ([]byte, []int)deprecated
- func (x *Msg) GetDst() *DataNode
- func (x *Msg) GetMagic() uint64
- func (x *Msg) GetNodes() []*DataNode
- func (x *Msg) GetPayload() []byte
- func (x *Msg) GetSeq() []byte
- func (x *Msg) GetSrc() *DataNode
- func (*Msg) ProtoMessage()
- func (x *Msg) ProtoReflect() protoreflect.Message
- func (x *Msg) Reset()
- func (x *Msg) String() string
Constants ¶
View Source
const (
Default_Constants_Magic = uint64(257787339638762)
)
Default values for Constants fields.
View Source
const (
Default_DataNode_Type = DataNode_CLIENT
)
Default values for DataNode fields.
Variables ¶
View Source
var ( DataNode_Type_name = map[int32]string{ 0: "UNKNOWN", 1: "CLIENT", 2: "SERVER", } DataNode_Type_value = map[string]int32{ "UNKNOWN": 0, "CLIENT": 1, "SERVER": 2, } )
Enum value maps for DataNode_Type.
View Source
var File_github_com_google_cloudprober_common_message_proto_message_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Constants ¶
type Constants struct { Magic *uint64 `protobuf:"varint,1,opt,name=magic,def=257787339638762" json:"magic,omitempty"` // contains filtered or unexported fields }
Constants defines constants with default values.
func (*Constants) Descriptor
deprecated
func (*Constants) ProtoMessage ¶
func (*Constants) ProtoMessage()
func (*Constants) ProtoReflect ¶ added in v0.10.8
func (x *Constants) ProtoReflect() protoreflect.Message
type DataNode ¶
type DataNode struct { Type *DataNode_Type `protobuf:"varint,1,opt,name=type,enum=message.DataNode_Type,def=1" json:"type,omitempty"` Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` Port *string `protobuf:"bytes,4,opt,name=port" json:"port,omitempty"` // 8 bytes of timestamp in pcap-friendly network byte order. TimestampUsec []byte `protobuf:"bytes,3,opt,name=timestamp_usec,json=timestampUsec" json:"timestamp_usec,omitempty"` // contains filtered or unexported fields }
Datanode is something that see's a message AND can modify it.
func (*DataNode) Descriptor
deprecated
func (*DataNode) GetTimestampUsec ¶
func (*DataNode) GetType ¶
func (x *DataNode) GetType() DataNode_Type
func (*DataNode) ProtoMessage ¶
func (*DataNode) ProtoMessage()
func (*DataNode) ProtoReflect ¶ added in v0.10.8
func (x *DataNode) ProtoReflect() protoreflect.Message
type DataNode_Type ¶
type DataNode_Type int32
const ( DataNode_UNKNOWN DataNode_Type = 0 DataNode_CLIENT DataNode_Type = 1 DataNode_SERVER DataNode_Type = 2 )
func (DataNode_Type) Descriptor ¶ added in v0.10.8
func (DataNode_Type) Descriptor() protoreflect.EnumDescriptor
func (DataNode_Type) Enum ¶
func (x DataNode_Type) Enum() *DataNode_Type
func (DataNode_Type) EnumDescriptor
deprecated
func (DataNode_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use DataNode_Type.Descriptor instead.
func (DataNode_Type) Number ¶ added in v0.10.8
func (x DataNode_Type) Number() protoreflect.EnumNumber
func (DataNode_Type) String ¶
func (x DataNode_Type) String() string
func (DataNode_Type) Type ¶ added in v0.10.8
func (DataNode_Type) Type() protoreflect.EnumType
func (*DataNode_Type) UnmarshalJSON
deprecated
func (x *DataNode_Type) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type Msg ¶
type Msg struct { Magic *uint64 `protobuf:"fixed64,1,opt,name=magic" json:"magic,omitempty"` // required. // 8 bytes of sequence in pcap-friendly network byte order. Seq []byte `protobuf:"bytes,2,opt,name=seq" json:"seq,omitempty"` // required. // Datanodes seen by this message. Src *DataNode `protobuf:"bytes,3,opt,name=src" json:"src,omitempty"` // required. Dst *DataNode `protobuf:"bytes,4,opt,name=dst" json:"dst,omitempty"` // required. Nodes []*DataNode `protobuf:"bytes,5,rep,name=nodes" json:"nodes,omitempty"` // Intermediate nodes. // Optional payload. Payload []byte `protobuf:"bytes,99,opt,name=payload" json:"payload,omitempty"` // contains filtered or unexported fields }
Msg is a message sent over the network. magic, seq, src and dst are required fields.
func (*Msg) Descriptor
deprecated
func (*Msg) GetPayload ¶
func (*Msg) ProtoMessage ¶
func (*Msg) ProtoMessage()
func (*Msg) ProtoReflect ¶ added in v0.10.8
func (x *Msg) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.