Documentation ¶
Index ¶
- Variables
- type Header
- func (*Header) Descriptor() ([]byte, []int)deprecated
- func (x *Header) GetCode() int32
- func (x *Header) GetMessage() string
- func (x *Header) GetMeta() map[string]string
- func (x *Header) GetNamespace() string
- func (x *Header) GetReason() string
- func (x *Header) GetType() string
- func (*Header) ProtoMessage()
- func (x *Header) ProtoReflect() protoreflect.Message
- func (x *Header) Reset()
- func (x *Header) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_pb_response_response_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Header ¶
type Header struct { // 自定义返回码 0:表示正常 Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // 数据类型, 可以缺省 Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` // 异常的范围 Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"` // 异常原因 Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` // 关于这次响应的说明信息 Message string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` // 数据meta Meta map[string]string `` /* 149-byte string literal not displayed */ // contains filtered or unexported fields }
Data to be used by controllers.
func (*Header) Descriptor
deprecated
func (*Header) GetMessage ¶
func (*Header) GetNamespace ¶
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
func (*Header) ProtoReflect ¶
func (x *Header) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.