Documentation
¶
Index ¶
- Variables
- type DebugEntry
- func (*DebugEntry) Descriptor() ([]byte, []int)deprecated
- func (x *DebugEntry) GetData() *structpb.Value
- func (x *DebugEntry) GetLevel() string
- func (x *DebugEntry) GetMessage() string
- func (x *DebugEntry) GetTimestamp() int64
- func (*DebugEntry) ProtoMessage()
- func (x *DebugEntry) ProtoReflect() protoreflect.Message
- func (x *DebugEntry) Reset()
- func (x *DebugEntry) String() string
- type DebugInfo
- type Resp
- func (*Resp) Descriptor() ([]byte, []int)deprecated
- func (x *Resp) GetCode() int64
- func (x *Resp) GetData() *structpb.Value
- func (x *Resp) GetDebugInfo() *DebugInfo
- func (x *Resp) GetExtraData() *structpb.Value
- func (x *Resp) GetMessage() string
- func (x *Resp) GetParams() *structpb.Value
- func (x *Resp) GetStatistics() *Statistics
- func (x *Resp) GetTrace() *Trace
- func (*Resp) ProtoMessage()
- func (x *Resp) ProtoReflect() protoreflect.Message
- func (x *Resp) Reset()
- func (x *Resp) String() string
- type Statistics
- func (*Statistics) Descriptor() ([]byte, []int)deprecated
- func (x *Statistics) GetExecuteTime() int64
- func (x *Statistics) GetFrom() string
- func (x *Statistics) GetRequestTime() int64
- func (x *Statistics) GetResponseTime() int64
- func (x *Statistics) GetTo() string
- func (*Statistics) ProtoMessage()
- func (x *Statistics) ProtoReflect() protoreflect.Message
- func (x *Statistics) Reset()
- func (x *Statistics) String() string
- type Trace
- func (*Trace) Descriptor() ([]byte, []int)deprecated
- func (x *Trace) GetEnv() string
- func (x *Trace) GetHostName() string
- func (x *Trace) GetIp() string
- func (x *Trace) GetRequestId() string
- func (x *Trace) GetServiceName() string
- func (x *Trace) GetSpanId() string
- func (x *Trace) GetTraceId() string
- func (x *Trace) GetVersion() string
- func (*Trace) ProtoMessage()
- func (x *Trace) ProtoReflect() protoreflect.Message
- func (x *Trace) Reset()
- func (x *Trace) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_debug_info_proto protoreflect.FileDescriptor
View Source
var File_response_proto protoreflect.FileDescriptor
View Source
var File_statistics_proto protoreflect.FileDescriptor
View Source
var File_trace_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type DebugEntry ¶
type DebugEntry struct {
Level string `protobuf:"bytes,1,opt,name=level,proto3" json:"level,omitempty"` // 日志级别
Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // 时间戳(毫秒)
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` // 调试信息内容
Data *structpb.Value `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` // 额外数据
// contains filtered or unexported fields
}
func (*DebugEntry) Descriptor
deprecated
func (*DebugEntry) Descriptor() ([]byte, []int)
Deprecated: Use DebugEntry.ProtoReflect.Descriptor instead.
func (*DebugEntry) GetData ¶
func (x *DebugEntry) GetData() *structpb.Value
func (*DebugEntry) GetLevel ¶
func (x *DebugEntry) GetLevel() string
func (*DebugEntry) GetMessage ¶
func (x *DebugEntry) GetMessage() string
func (*DebugEntry) GetTimestamp ¶
func (x *DebugEntry) GetTimestamp() int64
func (*DebugEntry) ProtoMessage ¶
func (*DebugEntry) ProtoMessage()
func (*DebugEntry) ProtoReflect ¶
func (x *DebugEntry) ProtoReflect() protoreflect.Message
func (*DebugEntry) Reset ¶
func (x *DebugEntry) Reset()
func (*DebugEntry) String ¶
func (x *DebugEntry) String() string
type DebugInfo ¶
type DebugInfo struct {
Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` // 是否启用调试
Parts []*DebugEntry `protobuf:"bytes,2,rep,name=parts,proto3" json:"parts,omitempty"` // 多条调试信息
// contains filtered or unexported fields
}
func (*DebugInfo) Descriptor
deprecated
func (*DebugInfo) GetEnabled ¶
func (*DebugInfo) GetParts ¶
func (x *DebugInfo) GetParts() []*DebugEntry
func (*DebugInfo) ProtoMessage ¶
func (*DebugInfo) ProtoMessage()
func (*DebugInfo) ProtoReflect ¶
func (x *DebugInfo) ProtoReflect() protoreflect.Message
type Resp ¶
type Resp struct {
// resp code
Code *int64 `protobuf:"varint,1,opt,name=code,proto3,oneof" json:"code,omitempty"`
// resp message
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// resp data
Data *structpb.Value `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
// request data
Params *structpb.Value `protobuf:"bytes,4,opt,name=params,proto3" json:"params,omitempty"`
// resp 扩展信息
ExtraData *structpb.Value `protobuf:"bytes,5,opt,name=extra_data,json=extraData,proto3" json:"extra_data,omitempty"`
// 统计信息
Statistics *Statistics `protobuf:"bytes,6,opt,name=statistics,proto3" json:"statistics,omitempty"`
// 追踪信息
Trace *Trace `protobuf:"bytes,7,opt,name=trace,proto3" json:"trace,omitempty"`
// debug信息
DebugInfo *DebugInfo `protobuf:"bytes,8,opt,name=debug_info,json=debugInfo,proto3" json:"debug_info,omitempty"`
// contains filtered or unexported fields
}
Resp 响应结构
func (*Resp) Descriptor
deprecated
func (*Resp) GetDebugInfo ¶
func (*Resp) GetExtraData ¶
func (*Resp) GetMessage ¶
func (*Resp) GetStatistics ¶
func (x *Resp) GetStatistics() *Statistics
func (*Resp) ProtoMessage ¶
func (*Resp) ProtoMessage()
func (*Resp) ProtoReflect ¶
func (x *Resp) ProtoReflect() protoreflect.Message
type Statistics ¶
type Statistics struct {
// request address
From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
// target address
To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
// execute begin time out mill
RequestTime int64 `protobuf:"varint,3,opt,name=request_time,json=requestTime,proto3" json:"request_time,omitempty"`
// execute end time out mill
ResponseTime int64 `protobuf:"varint,4,opt,name=response_time,json=responseTime,proto3" json:"response_time,omitempty"`
// execute time out mill
ExecuteTime *int64 `protobuf:"varint,5,opt,name=execute_time,json=executeTime,proto3,oneof" json:"execute_time,omitempty"`
// contains filtered or unexported fields
}
Statistics 统计信息
func (*Statistics) Descriptor
deprecated
func (*Statistics) Descriptor() ([]byte, []int)
Deprecated: Use Statistics.ProtoReflect.Descriptor instead.
func (*Statistics) GetExecuteTime ¶
func (x *Statistics) GetExecuteTime() int64
func (*Statistics) GetFrom ¶
func (x *Statistics) GetFrom() string
func (*Statistics) GetRequestTime ¶
func (x *Statistics) GetRequestTime() int64
func (*Statistics) GetResponseTime ¶
func (x *Statistics) GetResponseTime() int64
func (*Statistics) GetTo ¶
func (x *Statistics) GetTo() string
func (*Statistics) ProtoMessage ¶
func (*Statistics) ProtoMessage()
func (*Statistics) ProtoReflect ¶
func (x *Statistics) ProtoReflect() protoreflect.Message
func (*Statistics) Reset ¶
func (x *Statistics) Reset()
func (*Statistics) String ¶
func (x *Statistics) String() string
type Trace ¶
type Trace struct {
// request id
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// trace id
TraceId string `protobuf:"bytes,2,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`
// node id
SpanId string `protobuf:"bytes,3,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"`
Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
// server name
ServiceName string `protobuf:"bytes,5,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
// host_name
HostName string `protobuf:"bytes,6,opt,name=host_name,json=hostName,proto3" json:"host_name,omitempty"`
// ip
Ip string `protobuf:"bytes,7,opt,name=ip,proto3" json:"ip,omitempty"`
// env
Env string `protobuf:"bytes,8,opt,name=env,proto3" json:"env,omitempty"`
// contains filtered or unexported fields
}
Trace 追踪信息
func (*Trace) Descriptor
deprecated
func (*Trace) GetHostName ¶
func (*Trace) GetRequestId ¶
func (*Trace) GetServiceName ¶
func (*Trace) GetTraceId ¶
func (*Trace) GetVersion ¶
func (*Trace) ProtoMessage ¶
func (*Trace) ProtoMessage()
func (*Trace) ProtoReflect ¶
func (x *Trace) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.