Documentation
¶
Index ¶
- Variables
- type CommonResp
- func (*CommonResp) Descriptor() ([]byte, []int)deprecated
- func (x *CommonResp) GetCode() int32
- func (x *CommonResp) GetData() *anypb.Any
- func (x *CommonResp) GetMsg() string
- func (*CommonResp) ProtoMessage()
- func (x *CommonResp) ProtoReflect() protoreflect.Message
- func (x *CommonResp) Reset()
- func (x *CommonResp) String() string
- type ErrResp
- func (*ErrResp) Descriptor() ([]byte, []int)deprecated
- func (x *ErrResp) ErrResp() *errors.ErrResp
- func (x *ErrResp) Error() string
- func (x *ErrResp) GetCode() int32
- func (x *ErrResp) GetMsg() string
- func (*ErrResp) ProtoMessage()
- func (x *ErrResp) ProtoReflect() protoreflect.Message
- func (x *ErrResp) Reset()
- func (x *ErrResp) String() string
- type HttpResponse
- func (*HttpResponse) Descriptor() ([]byte, []int)deprecated
- func (x *HttpResponse) GetBody() []byte
- func (x *HttpResponse) GetHeaders() map[string]string
- func (x *HttpResponse) GetStatus() int32
- func (*HttpResponse) ProtoMessage()
- func (x *HttpResponse) ProtoReflect() protoreflect.Message
- func (x *HttpResponse) Reset()
- func (x *HttpResponse) Respond(ctx context.Context, w http.ResponseWriter) (int, error)
- func (x *HttpResponse) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (x *HttpResponse) String() string
- type ListResp
- type RawResp
- func (*RawResp) Descriptor() ([]byte, []int)deprecated
- func (x *RawResp) GetCode() int32
- func (x *RawResp) GetData() []byte
- func (x *RawResp) GetMsg() string
- func (*RawResp) ProtoMessage()
- func (x *RawResp) ProtoReflect() protoreflect.Message
- func (x *RawResp) Reset()
- func (x *RawResp) String() string
- type StringValue
- type StringValueInput
Constants ¶
This section is empty.
Variables ¶
View Source
var File_hopeio_response_response_proto protoreflect.FileDescriptor
View Source
var RespOk = &ErrResp{}
Functions ¶
This section is empty.
Types ¶
type CommonResp ¶ added in v0.5.3
type CommonResp struct {
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code"`
Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
Data *anypb.Any `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
func (*CommonResp) Descriptor
deprecated
added in
v0.5.3
func (*CommonResp) Descriptor() ([]byte, []int)
Deprecated: Use CommonResp.ProtoReflect.Descriptor instead.
func (*CommonResp) GetCode ¶ added in v0.5.3
func (x *CommonResp) GetCode() int32
func (*CommonResp) GetData ¶ added in v0.7.0
func (x *CommonResp) GetData() *anypb.Any
func (*CommonResp) GetMsg ¶ added in v0.5.3
func (x *CommonResp) GetMsg() string
func (*CommonResp) ProtoMessage ¶ added in v0.5.3
func (*CommonResp) ProtoMessage()
func (*CommonResp) ProtoReflect ¶ added in v0.5.3
func (x *CommonResp) ProtoReflect() protoreflect.Message
func (*CommonResp) Reset ¶ added in v0.5.3
func (x *CommonResp) Reset()
func (*CommonResp) String ¶ added in v0.5.3
func (x *CommonResp) String() string
type ErrResp ¶ added in v0.7.0
type ErrResp struct {
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code"`
Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
// contains filtered or unexported fields
}
返回数据为字符串,用于新建修改删除类的成功失败提示
func (*ErrResp) Descriptor
deprecated
added in
v0.7.0
func (*ErrResp) ProtoMessage ¶ added in v0.7.0
func (*ErrResp) ProtoMessage()
func (*ErrResp) ProtoReflect ¶ added in v0.7.0
func (x *ErrResp) ProtoReflect() protoreflect.Message
type HttpResponse ¶
type HttpResponse struct {
Headers map[string]string `` /* 141-byte string literal not displayed */
Body []byte `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
Status int32 `protobuf:"varint,3,opt,name=status,proto3" json:"status,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) GetHeaders ¶ added in v0.1.7
func (x *HttpResponse) GetHeaders() map[string]string
func (*HttpResponse) GetStatus ¶ added in v0.1.7
func (x *HttpResponse) GetStatus() int32
func (*HttpResponse) ProtoMessage ¶
func (*HttpResponse) ProtoMessage()
func (*HttpResponse) ProtoReflect ¶
func (x *HttpResponse) ProtoReflect() protoreflect.Message
func (*HttpResponse) Reset ¶
func (x *HttpResponse) Reset()
func (*HttpResponse) Respond ¶ added in v0.5.3
func (x *HttpResponse) Respond(ctx context.Context, w http.ResponseWriter) (int, error)
func (*HttpResponse) ServeHTTP ¶ added in v0.7.13
func (x *HttpResponse) ServeHTTP(w http.ResponseWriter, r *http.Request)
func (*HttpResponse) String ¶
func (x *HttpResponse) String() string
type ListResp ¶ added in v0.7.5
type ListResp struct {
List []*anypb.Any `protobuf:"bytes,3,rep,name=list,proto3" json:"list,omitempty"`
Total uint32 `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty"`
// contains filtered or unexported fields
}
func (*ListResp) Descriptor
deprecated
added in
v0.7.5
func (*ListResp) ProtoMessage ¶ added in v0.7.5
func (*ListResp) ProtoMessage()
func (*ListResp) ProtoReflect ¶ added in v0.7.5
func (x *ListResp) ProtoReflect() protoreflect.Message
type RawResp ¶ added in v0.5.3
type RawResp struct {
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code"`
Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
func (*RawResp) Descriptor
deprecated
added in
v0.5.3
func (*RawResp) ProtoMessage ¶ added in v0.5.3
func (*RawResp) ProtoMessage()
func (*RawResp) ProtoReflect ¶ added in v0.5.3
func (x *RawResp) ProtoReflect() protoreflect.Message
type StringValue ¶
type StringValue = wrapperspb.StringValue
Click to show internal directories.
Click to hide internal directories.