trace

package
v0.0.0-...-2f8c281 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2018 License: Apache-2.0 Imports: 6 Imported by: 1

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

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

func MarshalDataToTrcMsg(msg proto.Message) []byte

Types

type MsgType

type MsgType int32
const (
	MsgType_None     MsgType = 0
	MsgType_Request  MsgType = 1
	MsgType_Responce MsgType = 2
)

func GetMessageType

func GetMessageType(msg proto.Message) MsgType

func (MsgType) EnumDescriptor

func (MsgType) EnumDescriptor() ([]byte, []int)

func (MsgType) String

func (x MsgType) String() string

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) MarshalTo

func (m *TraceMessage) MarshalTo(dAtA []byte) (int, 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

type TraceMsgItfc proto.Message

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) MarshalTo

func (m *TraceRequest) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *TraceResponse) MarshalTo(dAtA []byte) (int, 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL