response

package
v1.9.24 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_mcube_pb_response_response_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Response added in v0.9.2

type Response 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 */
	// data 具体的数据
	Data *anypb.Any `protobuf:"bytes,7,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

Response to be used by controllers.

func (*Response) Descriptor deprecated added in v0.9.2

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetCode added in v0.9.2

func (x *Response) GetCode() int32

func (*Response) GetData added in v0.9.2

func (x *Response) GetData() *anypb.Any

func (*Response) GetMessage added in v0.9.2

func (x *Response) GetMessage() string

func (*Response) GetMeta added in v0.9.2

func (x *Response) GetMeta() map[string]string

func (*Response) GetNamespace added in v0.9.2

func (x *Response) GetNamespace() string

func (*Response) GetReason added in v0.9.2

func (x *Response) GetReason() string

func (*Response) GetType added in v0.9.2

func (x *Response) GetType() string

func (*Response) ProtoMessage added in v0.9.2

func (*Response) ProtoMessage()

func (*Response) ProtoReflect added in v0.9.2

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

func (*Response) Reset added in v0.9.2

func (x *Response) Reset()

func (*Response) String added in v0.9.2

func (x *Response) String() string

Jump to

Keyboard shortcuts

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