pb

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Header struct {
	Requester string            `protobuf:"bytes,1,opt,name=requester,proto3" json:"requester,omitempty"`                   // 调用者对自身的描述,必须,由调用者填写。如:ui#192.168.10.2:8211
	TraceId   string            `protobuf:"bytes,2,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`        // 请求的唯一ID,必须,由调用者填写
	Timestamp int64             `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`                  // 事件发生的时间,必须,由调用者填写
	Version   string            `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`                       // 传输协议版本号,必须,由调用者填写
	Operator  string            `protobuf:"bytes,5,opt,name=operator,proto3" json:"operator,omitempty"`                     // 操作者ID,如web操作的操作用户,由调用者填写
	ReplyCode int32             `protobuf:"varint,6,opt,name=reply_code,json=replyCode,proto3" json:"reply_code,omitempty"` // 服务端应答码,由各业务自己定义枚举
	ReplyMsg  string            `protobuf:"bytes,7,opt,name=reply_msg,json=replyMsg,proto3" json:"reply_msg,omitempty"`     // 服务端应错误,由各业务自己定义
	Metadata  map[string]string ``                                                                                          // 交互数据
	/* 158-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Header) Descriptor deprecated

func (*Header) Descriptor() ([]byte, []int)

Deprecated: Use Header.ProtoReflect.Descriptor instead.

func (*Header) GetMetadata

func (x *Header) GetMetadata() map[string]string

func (*Header) GetOperator

func (x *Header) GetOperator() string

func (*Header) GetReplyCode

func (x *Header) GetReplyCode() int32

func (*Header) GetReplyMsg

func (x *Header) GetReplyMsg() string

func (*Header) GetRequester

func (x *Header) GetRequester() string

func (*Header) GetTimestamp

func (x *Header) GetTimestamp() int64

func (*Header) GetTraceId

func (x *Header) GetTraceId() string

func (*Header) GetVersion

func (x *Header) GetVersion() string

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) ProtoReflect

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

func (*Header) Reset

func (x *Header) Reset()

func (*Header) String

func (x *Header) String() string

type Ping

type Ping struct {
	// contains filtered or unexported fields
}

func (*Ping) Descriptor deprecated

func (*Ping) Descriptor() ([]byte, []int)

Deprecated: Use Ping.ProtoReflect.Descriptor instead.

func (*Ping) ProtoMessage

func (*Ping) ProtoMessage()

func (*Ping) ProtoReflect

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

func (*Ping) Reset

func (x *Ping) Reset()

func (*Ping) String

func (x *Ping) String() string

type Ping_Req

type Ping_Req struct {
	Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// contains filtered or unexported fields
}

func (*Ping_Req) Descriptor deprecated

func (*Ping_Req) Descriptor() ([]byte, []int)

Deprecated: Use Ping_Req.ProtoReflect.Descriptor instead.

func (*Ping_Req) GetHeader

func (x *Ping_Req) GetHeader() *Header

func (*Ping_Req) ProtoMessage

func (*Ping_Req) ProtoMessage()

func (*Ping_Req) ProtoReflect

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

func (*Ping_Req) Reset

func (x *Ping_Req) Reset()

func (*Ping_Req) String

func (x *Ping_Req) String() string

type Ping_Resp

type Ping_Resp struct {
	Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// contains filtered or unexported fields
}

func (*Ping_Resp) Descriptor deprecated

func (*Ping_Resp) Descriptor() ([]byte, []int)

Deprecated: Use Ping_Resp.ProtoReflect.Descriptor instead.

func (*Ping_Resp) GetHeader

func (x *Ping_Resp) GetHeader() *Header

func (*Ping_Resp) ProtoMessage

func (*Ping_Resp) ProtoMessage()

func (*Ping_Resp) ProtoReflect

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

func (*Ping_Resp) Reset

func (x *Ping_Resp) Reset()

func (*Ping_Resp) String

func (x *Ping_Resp) String() string

Jump to

Keyboard shortcuts

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