proto

package
v1.1.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use DebugInfo.ProtoReflect.Descriptor instead.

func (*DebugInfo) GetEnabled

func (x *DebugInfo) GetEnabled() bool

func (*DebugInfo) GetParts

func (x *DebugInfo) GetParts() []*DebugEntry

func (*DebugInfo) ProtoMessage

func (*DebugInfo) ProtoMessage()

func (*DebugInfo) ProtoReflect

func (x *DebugInfo) ProtoReflect() protoreflect.Message

func (*DebugInfo) Reset

func (x *DebugInfo) Reset()

func (*DebugInfo) String

func (x *DebugInfo) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Resp.ProtoReflect.Descriptor instead.

func (*Resp) GetCode

func (x *Resp) GetCode() int64

func (*Resp) GetData

func (x *Resp) GetData() *structpb.Value

func (*Resp) GetDebugInfo

func (x *Resp) GetDebugInfo() *DebugInfo

func (*Resp) GetExtraData

func (x *Resp) GetExtraData() *structpb.Value

func (*Resp) GetMessage

func (x *Resp) GetMessage() string

func (*Resp) GetParams

func (x *Resp) GetParams() *structpb.Value

func (*Resp) GetStatistics

func (x *Resp) GetStatistics() *Statistics

func (*Resp) GetTrace

func (x *Resp) GetTrace() *Trace

func (*Resp) ProtoMessage

func (*Resp) ProtoMessage()

func (*Resp) ProtoReflect

func (x *Resp) ProtoReflect() protoreflect.Message

func (*Resp) Reset

func (x *Resp) Reset()

func (*Resp) String

func (x *Resp) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Trace.ProtoReflect.Descriptor instead.

func (*Trace) GetEnv

func (x *Trace) GetEnv() string

func (*Trace) GetHostName

func (x *Trace) GetHostName() string

func (*Trace) GetIp

func (x *Trace) GetIp() string

func (*Trace) GetRequestId

func (x *Trace) GetRequestId() string

func (*Trace) GetServiceName

func (x *Trace) GetServiceName() string

func (*Trace) GetSpanId

func (x *Trace) GetSpanId() string

func (*Trace) GetTraceId

func (x *Trace) GetTraceId() string

func (*Trace) GetVersion

func (x *Trace) GetVersion() string

func (*Trace) ProtoMessage

func (*Trace) ProtoMessage()

func (*Trace) ProtoReflect

func (x *Trace) ProtoReflect() protoreflect.Message

func (*Trace) Reset

func (x *Trace) Reset()

func (*Trace) String

func (x *Trace) String() string

Jump to

Keyboard shortcuts

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