response

package
v0.0.0-...-f5948c0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_zeta_protobuf_response_response_proto protoreflect.FileDescriptor
View Source
var ResponseOk = &TinyRep{Message: "OK"}

Functions

This section is empty.

Types

type AnyReply

type AnyReply struct {
	Code    uint32     `protobuf:"varint,1,opt,name=code,proto3" json:"code"`
	Message string     `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Details *anypb.Any `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"`
	// contains filtered or unexported fields
}

func (*AnyReply) Descriptor deprecated

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

Deprecated: Use AnyReply.ProtoReflect.Descriptor instead.

func (*AnyReply) GetCode

func (x *AnyReply) GetCode() uint32

func (*AnyReply) GetDetails

func (x *AnyReply) GetDetails() *anypb.Any

func (*AnyReply) GetMessage

func (x *AnyReply) GetMessage() string

func (*AnyReply) ProtoMessage

func (*AnyReply) ProtoMessage()

func (*AnyReply) ProtoReflect

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

func (*AnyReply) Reset

func (x *AnyReply) Reset()

func (*AnyReply) String

func (x *AnyReply) String() string

type CommonRep

type CommonRep struct {
	Code    uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Details string `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"`
	// contains filtered or unexported fields
}

返回数据为字符串,用于新建修改删除类的成功失败提示

func (*CommonRep) Descriptor deprecated

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

Deprecated: Use CommonRep.ProtoReflect.Descriptor instead.

func (*CommonRep) GetCode

func (x *CommonRep) GetCode() uint32

func (*CommonRep) GetDetails

func (x *CommonRep) GetDetails() string

func (*CommonRep) GetMessage

func (x *CommonRep) GetMessage() string

func (*CommonRep) ProtoMessage

func (*CommonRep) ProtoMessage()

func (*CommonRep) ProtoReflect

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

func (*CommonRep) Reset

func (x *CommonRep) Reset()

func (*CommonRep) String

func (x *CommonRep) String() string

type GoReply

type GoReply struct {
	Code    uint32
	Message string
	Details proto.Message
}

type HttpResponse

type HttpResponse struct {
	Header     []string `protobuf:"bytes,1,rep,name=Header,proto3" json:"Header,omitempty"`
	Body       []byte   `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
	StatusCode uint32   `protobuf:"varint,3,opt,name=statusCode,proto3" json:"statusCode,omitempty"`
	// contains filtered or unexported fields
}

func (*HttpResponse) Descriptor deprecated

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

Deprecated: Use HttpResponse.ProtoReflect.Descriptor instead.

func (*HttpResponse) GetBody

func (x *HttpResponse) GetBody() []byte

func (*HttpResponse) GetContentType

func (x *HttpResponse) GetContentType() string

func (*HttpResponse) GetHeader

func (x *HttpResponse) GetHeader() []string

func (*HttpResponse) GetStatusCode

func (x *HttpResponse) GetStatusCode() uint32

func (*HttpResponse) ProtoMessage

func (*HttpResponse) ProtoMessage()

func (*HttpResponse) ProtoReflect

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

func (*HttpResponse) Reset

func (x *HttpResponse) Reset()

func (*HttpResponse) Response

func (x *HttpResponse) Response(w http.ResponseWriter)

func (*HttpResponse) String

func (x *HttpResponse) String() string

type RawReply

type RawReply struct {
	Code    uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// 字节数组json
	Details *any1.RawJson `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"`
	// contains filtered or unexported fields
}

func (*RawReply) Descriptor deprecated

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

Deprecated: Use RawReply.ProtoReflect.Descriptor instead.

func (*RawReply) GetCode

func (x *RawReply) GetCode() uint32

func (*RawReply) GetDetails

func (x *RawReply) GetDetails() *any1.RawJson

func (*RawReply) GetMessage

func (x *RawReply) GetMessage() string

func (*RawReply) ProtoMessage

func (*RawReply) ProtoMessage()

func (*RawReply) ProtoReflect

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

func (*RawReply) Reset

func (x *RawReply) Reset()

func (*RawReply) String

func (x *RawReply) String() string

type StringValue

type StringValue = wrapperspb.StringValue

type StringValueInput

type StringValueInput = wrapperspb.StringValue

type TinyRep

type TinyRep struct {
	Code    uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*TinyRep) Descriptor deprecated

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

Deprecated: Use TinyRep.ProtoReflect.Descriptor instead.

func (*TinyRep) GetCode

func (x *TinyRep) GetCode() uint32

func (*TinyRep) GetMessage

func (x *TinyRep) GetMessage() string

func (*TinyRep) ProtoMessage

func (*TinyRep) ProtoMessage()

func (*TinyRep) ProtoReflect

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

func (*TinyRep) Reset

func (x *TinyRep) Reset()

func (*TinyRep) String

func (x *TinyRep) String() string

Jump to

Keyboard shortcuts

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