Documentation ¶
Index ¶
- Constants
- Variables
- type Constants
- func (*Constants) Descriptor() ([]byte, []int)
- func (m *Constants) GetMagic() uint64
- func (*Constants) ProtoMessage()
- func (m *Constants) Reset()
- func (m *Constants) String() string
- func (m *Constants) XXX_DiscardUnknown()
- func (m *Constants) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Constants) XXX_Merge(src proto.Message)
- func (m *Constants) XXX_Size() int
- func (m *Constants) XXX_Unmarshal(b []byte) error
- type DataNode
- func (*DataNode) Descriptor() ([]byte, []int)
- func (m *DataNode) GetName() string
- func (m *DataNode) GetPort() string
- func (m *DataNode) GetTimestampUsec() []byte
- func (m *DataNode) GetType() DataNode_Type
- func (*DataNode) ProtoMessage()
- func (m *DataNode) Reset()
- func (m *DataNode) String() string
- func (m *DataNode) XXX_DiscardUnknown()
- func (m *DataNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DataNode) XXX_Merge(src proto.Message)
- func (m *DataNode) XXX_Size() int
- func (m *DataNode) XXX_Unmarshal(b []byte) error
- type DataNode_Type
- type Msg
- func (*Msg) Descriptor() ([]byte, []int)
- func (m *Msg) GetDst() *DataNode
- func (m *Msg) GetMagic() uint64
- func (m *Msg) GetNodes() []*DataNode
- func (m *Msg) GetPayload() []byte
- func (m *Msg) GetSeq() []byte
- func (m *Msg) GetSrc() *DataNode
- func (*Msg) ProtoMessage()
- func (m *Msg) Reset()
- func (m *Msg) String() string
- func (m *Msg) XXX_DiscardUnknown()
- func (m *Msg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Msg) XXX_Merge(src proto.Message)
- func (m *Msg) XXX_Size() int
- func (m *Msg) XXX_Unmarshal(b []byte) error
Constants ¶
View Source
const Default_Constants_Magic uint64 = 257787339638762
Variables ¶
View Source
var DataNode_Type_name = map[int32]string{
0: "UNKNOWN",
1: "CLIENT",
2: "SERVER",
}
View Source
var DataNode_Type_value = map[string]int32{
"UNKNOWN": 0,
"CLIENT": 1,
"SERVER": 2,
}
Functions ¶
This section is empty.
Types ¶
type Constants ¶
type Constants struct { Magic *uint64 `protobuf:"varint,1,opt,name=magic,def=257787339638762" json:"magic,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Constants defines constants with default values.
func (*Constants) Descriptor ¶
func (*Constants) ProtoMessage ¶
func (*Constants) ProtoMessage()
func (*Constants) XXX_DiscardUnknown ¶
func (m *Constants) XXX_DiscardUnknown()
func (*Constants) XXX_Marshal ¶
func (*Constants) XXX_Unmarshal ¶
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Datanode is something that see's a message AND can modify it.
func (*DataNode) Descriptor ¶
func (*DataNode) GetTimestampUsec ¶
func (*DataNode) GetType ¶
func (m *DataNode) GetType() DataNode_Type
func (*DataNode) ProtoMessage ¶
func (*DataNode) ProtoMessage()
func (*DataNode) XXX_DiscardUnknown ¶
func (m *DataNode) XXX_DiscardUnknown()
func (*DataNode) XXX_Marshal ¶
func (*DataNode) XXX_Unmarshal ¶
type DataNode_Type ¶
type DataNode_Type int32
const ( DataNode_UNKNOWN DataNode_Type = 0 DataNode_CLIENT DataNode_Type = 1 DataNode_SERVER DataNode_Type = 2 )
const Default_DataNode_Type DataNode_Type = DataNode_CLIENT
func (DataNode_Type) Enum ¶
func (x DataNode_Type) Enum() *DataNode_Type
func (DataNode_Type) EnumDescriptor ¶
func (DataNode_Type) EnumDescriptor() ([]byte, []int)
func (DataNode_Type) String ¶
func (x DataNode_Type) String() string
func (*DataNode_Type) UnmarshalJSON ¶
func (x *DataNode_Type) UnmarshalJSON(data []byte) error
type Msg ¶
type Msg struct { Magic *uint64 `protobuf:"fixed64,1,opt,name=magic" json:"magic,omitempty"` // 8 bytes of sequence in pcap-friendly network byte order. Seq []byte `protobuf:"bytes,2,opt,name=seq" json:"seq,omitempty"` // Datanodes seen by this message. Src *DataNode `protobuf:"bytes,3,opt,name=src" json:"src,omitempty"` Dst *DataNode `protobuf:"bytes,4,opt,name=dst" json:"dst,omitempty"` Nodes []*DataNode `protobuf:"bytes,5,rep,name=nodes" json:"nodes,omitempty"` // Optional payload. Payload []byte `protobuf:"bytes,99,opt,name=payload" json:"payload,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Msg is a message sent over the network. magic, seq, src and dst are required fields.
func (*Msg) Descriptor ¶
func (*Msg) GetPayload ¶ added in v0.10.6
func (*Msg) ProtoMessage ¶
func (*Msg) ProtoMessage()
func (*Msg) XXX_DiscardUnknown ¶
func (m *Msg) XXX_DiscardUnknown()
func (*Msg) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.