Documentation ¶
Overview ¶
Package com_hailocab_kernel_platform_trace is a generated protocol buffer package.
It is generated from these files:
github.com/hailocab/h2/go/internal/p/proto/trace/trace.proto
It has these top-level messages:
Event
Index ¶
- Constants
- Variables
- type Event
- func (m *Event) GetAz() string
- func (m *Event) GetDuration() int64
- func (m *Event) GetErrorCode() string
- func (m *Event) GetErrorDescription() string
- func (m *Event) GetFrom() string
- func (m *Event) GetFromEndpoint() string
- func (m *Event) GetHandlerInstanceId() string
- func (m *Event) GetHostname() string
- func (m *Event) GetMessageId() string
- func (m *Event) GetParentMessageId() string
- func (m *Event) GetPayload() string
- func (m *Event) GetPersistentTrace() bool
- func (m *Event) GetTimestamp() int64
- func (m *Event) GetTo() string
- func (m *Event) GetTraceId() string
- func (m *Event) GetType() Event_Type
- func (*Event) ProtoMessage()
- func (m *Event) Reset()
- func (m *Event) String() string
- type Event_Type
Constants ¶
View Source
const Default_Event_PersistentTrace bool = false
Variables ¶
View Source
var Event_Type_name = map[int32]string{
1: "IN",
2: "OUT",
3: "REQ",
4: "REP",
5: "ATTEMPT_TIMEOUT",
6: "START",
}
View Source
var Event_Type_value = map[string]int32{
"IN": 1,
"OUT": 2,
"REQ": 3,
"REP": 4,
"ATTEMPT_TIMEOUT": 5,
"START": 6,
}
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { Timestamp *int64 `protobuf:"varint,1,req,name=timestamp" json:"timestamp,omitempty"` TraceId *string `protobuf:"bytes,2,req,name=traceId" json:"traceId,omitempty"` Type *Event_Type `protobuf:"varint,3,req,name=type,enum=com.hailocab.kernel.platform.trace.Event_Type" json:"type,omitempty"` MessageId *string `protobuf:"bytes,4,opt,name=messageId" json:"messageId,omitempty"` ParentMessageId *string `protobuf:"bytes,5,opt,name=parentMessageId" json:"parentMessageId,omitempty"` From *string `protobuf:"bytes,6,opt,name=from" json:"from,omitempty"` FromEndpoint *string `protobuf:"bytes,16,opt,name=fromEndpoint" json:"fromEndpoint,omitempty"` To *string `protobuf:"bytes,7,opt,name=to" json:"to,omitempty"` Hostname *string `protobuf:"bytes,8,opt,name=hostname" json:"hostname,omitempty"` Az *string `protobuf:"bytes,9,opt,name=az" json:"az,omitempty"` Payload *string `protobuf:"bytes,10,opt,name=payload" json:"payload,omitempty"` ErrorCode *string `protobuf:"bytes,11,opt,name=errorCode" json:"errorCode,omitempty"` ErrorDescription *string `protobuf:"bytes,12,opt,name=errorDescription" json:"errorDescription,omitempty"` HandlerInstanceId *string `protobuf:"bytes,13,opt,name=handlerInstanceId" json:"handlerInstanceId,omitempty"` Duration *int64 `protobuf:"varint,14,opt,name=duration" json:"duration,omitempty"` PersistentTrace *bool `protobuf:"varint,15,opt,name=persistentTrace,def=0" json:"persistentTrace,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Event) GetDuration ¶
func (*Event) GetErrorCode ¶
func (*Event) GetErrorDescription ¶
func (*Event) GetFromEndpoint ¶
func (*Event) GetHandlerInstanceId ¶
func (*Event) GetHostname ¶
func (*Event) GetMessageId ¶
func (*Event) GetParentMessageId ¶
func (*Event) GetPayload ¶
func (*Event) GetPersistentTrace ¶
func (*Event) GetTimestamp ¶
func (*Event) GetTraceId ¶
func (*Event) GetType ¶
func (m *Event) GetType() Event_Type
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
type Event_Type ¶
type Event_Type int32
const ( Event_IN Event_Type = 1 Event_OUT Event_Type = 2 Event_REQ Event_Type = 3 Event_REP Event_Type = 4 Event_ATTEMPT_TIMEOUT Event_Type = 5 Event_START Event_Type = 6 )
func (Event_Type) Enum ¶
func (x Event_Type) Enum() *Event_Type
func (Event_Type) MarshalJSON ¶
func (x Event_Type) MarshalJSON() ([]byte, error)
func (Event_Type) String ¶
func (x Event_Type) String() string
func (*Event_Type) UnmarshalJSON ¶
func (x *Event_Type) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.