Documentation ¶
Overview ¶
Package trace is a generated protocol buffer package.
It is generated from these files:
message.proto
It has these top-level messages:
TraceRequest TraceResponse TraceMessage
Index ¶
- Variables
- func MarshalDataToTrcMsg(msg proto.Message) []byte
- type MsgType
- type TraceMessage
- func (*TraceMessage) Descriptor() ([]byte, []int)
- func (m *TraceMessage) GetData() []byte
- func (m *TraceMessage) GetType() MsgType
- func (m *TraceMessage) Marshal() (dAtA []byte, err error)
- func (m *TraceMessage) MarshalTo(dAtA []byte) (int, error)
- func (*TraceMessage) ProtoMessage()
- func (m *TraceMessage) Reset()
- func (m *TraceMessage) Size() (n int)
- func (m *TraceMessage) String() string
- func (m *TraceMessage) Unmarshal(dAtA []byte) error
- type TraceMsgItfc
- type TraceRequest
- func (*TraceRequest) Descriptor() ([]byte, []int)
- func (m *TraceRequest) GetData() []byte
- func (m *TraceRequest) Marshal() (dAtA []byte, err error)
- func (m *TraceRequest) MarshalTo(dAtA []byte) (int, error)
- func (*TraceRequest) ProtoMessage()
- func (m *TraceRequest) Reset()
- func (m *TraceRequest) Size() (n int)
- func (m *TraceRequest) String() string
- func (m *TraceRequest) Unmarshal(dAtA []byte) error
- type TraceResponse
- func (*TraceResponse) Descriptor() ([]byte, []int)
- func (m *TraceResponse) GetRequestHash() []byte
- func (m *TraceResponse) GetResp() []byte
- func (m *TraceResponse) Marshal() (dAtA []byte, err error)
- func (m *TraceResponse) MarshalTo(dAtA []byte) (int, error)
- func (*TraceResponse) ProtoMessage()
- func (m *TraceResponse) Reset()
- func (m *TraceResponse) Size() (n int)
- func (m *TraceResponse) String() string
- func (m *TraceResponse) Unmarshal(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthMessage = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMessage = fmt.Errorf("proto: integer overflow") )
View Source
var MsgType_name = map[int32]string{
0: "None",
1: "Request",
2: "Responce",
}
View Source
var MsgType_value = map[string]int32{
"None": 0,
"Request": 1,
"Responce": 2,
}
Functions ¶
func MarshalDataToTrcMsg ¶
Types ¶
type TraceMessage ¶
type TraceMessage struct { Type MsgType `protobuf:"varint,1,opt,name=Type,proto3,enum=trace.MsgType" json:"Type,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=Data,proto3" json:"Data,omitempty"` }
func (*TraceMessage) Descriptor ¶
func (*TraceMessage) Descriptor() ([]byte, []int)
func (*TraceMessage) GetData ¶
func (m *TraceMessage) GetData() []byte
func (*TraceMessage) GetType ¶
func (m *TraceMessage) GetType() MsgType
func (*TraceMessage) Marshal ¶
func (m *TraceMessage) Marshal() (dAtA []byte, err error)
func (*TraceMessage) ProtoMessage ¶
func (*TraceMessage) ProtoMessage()
func (*TraceMessage) Reset ¶
func (m *TraceMessage) Reset()
func (*TraceMessage) Size ¶
func (m *TraceMessage) Size() (n int)
func (*TraceMessage) String ¶
func (m *TraceMessage) String() string
func (*TraceMessage) Unmarshal ¶
func (m *TraceMessage) Unmarshal(dAtA []byte) error
type TraceMsgItfc ¶
func UnmarshalTrcMsg ¶
func UnmarshalTrcMsg(bz []byte) (TraceMsgItfc, error)
type TraceRequest ¶
type TraceRequest struct {
Data []byte `protobuf:"bytes,1,opt,name=Data,proto3" json:"Data,omitempty"`
}
func (*TraceRequest) Descriptor ¶
func (*TraceRequest) Descriptor() ([]byte, []int)
func (*TraceRequest) GetData ¶
func (m *TraceRequest) GetData() []byte
func (*TraceRequest) Marshal ¶
func (m *TraceRequest) Marshal() (dAtA []byte, err error)
func (*TraceRequest) ProtoMessage ¶
func (*TraceRequest) ProtoMessage()
func (*TraceRequest) Reset ¶
func (m *TraceRequest) Reset()
func (*TraceRequest) Size ¶
func (m *TraceRequest) Size() (n int)
func (*TraceRequest) String ¶
func (m *TraceRequest) String() string
func (*TraceRequest) Unmarshal ¶
func (m *TraceRequest) Unmarshal(dAtA []byte) error
type TraceResponse ¶
type TraceResponse struct { RequestHash []byte `protobuf:"bytes,1,opt,name=RequestHash,proto3" json:"RequestHash,omitempty"` Resp []byte `protobuf:"bytes,2,opt,name=Resp,proto3" json:"Resp,omitempty"` }
func (*TraceResponse) Descriptor ¶
func (*TraceResponse) Descriptor() ([]byte, []int)
func (*TraceResponse) GetRequestHash ¶
func (m *TraceResponse) GetRequestHash() []byte
func (*TraceResponse) GetResp ¶
func (m *TraceResponse) GetResp() []byte
func (*TraceResponse) Marshal ¶
func (m *TraceResponse) Marshal() (dAtA []byte, err error)
func (*TraceResponse) ProtoMessage ¶
func (*TraceResponse) ProtoMessage()
func (*TraceResponse) Reset ¶
func (m *TraceResponse) Reset()
func (*TraceResponse) Size ¶
func (m *TraceResponse) Size() (n int)
func (*TraceResponse) String ¶
func (m *TraceResponse) String() string
func (*TraceResponse) Unmarshal ¶
func (m *TraceResponse) Unmarshal(dAtA []byte) error
Click to show internal directories.
Click to hide internal directories.