Documentation ¶
Index ¶
- Variables
- type PBBool
- type PBFile
- type PBListString
- type PBMapStringList
- func (*PBMapStringList) Descriptor() ([]byte, []int)deprecated
- func (x *PBMapStringList) GetMapStringList() map[string]*PBListString
- func (*PBMapStringList) ProtoMessage()
- func (x *PBMapStringList) ProtoReflect() protoreflect.Message
- func (x *PBMapStringList) Reset()
- func (x *PBMapStringList) String() string
- type PBResponse
- func (*PBResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PBResponse) GetCode() int32
- func (x *PBResponse) GetData() *anypb.Any
- func (x *PBResponse) GetMsg() string
- func (*PBResponse) ProtoMessage()
- func (x *PBResponse) ProtoReflect() protoreflect.Message
- func (x *PBResponse) Reset()
- func (x *PBResponse) String() string
- type PBString
- type PBUint64
Constants ¶
This section is empty.
Variables ¶
View Source
var File_pb_response_proto protoreflect.FileDescriptor
View Source
var File_pb_type_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type PBBool ¶
type PBBool struct { Value bool `protobuf:"varint,1,opt,name=Value,proto3" json:"Value,omitempty"` // contains filtered or unexported fields }
func (*PBBool) Descriptor
deprecated
func (*PBBool) ProtoMessage ¶
func (*PBBool) ProtoMessage()
func (*PBBool) ProtoReflect ¶
func (x *PBBool) ProtoReflect() protoreflect.Message
type PBFile ¶
type PBFile struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` Bytes []byte `protobuf:"bytes,2,opt,name=Bytes,proto3" json:"Bytes,omitempty"` // contains filtered or unexported fields }
即时生成的存储在内存的小文件在http上直接用pb传输,大文件走minio流式传输
func (*PBFile) Descriptor
deprecated
func (*PBFile) ProtoMessage ¶
func (*PBFile) ProtoMessage()
func (*PBFile) ProtoReflect ¶
func (x *PBFile) ProtoReflect() protoreflect.Message
type PBListString ¶
type PBListString struct { ListString []string `protobuf:"bytes,1,rep,name=ListString,proto3" json:"ListString,omitempty"` // contains filtered or unexported fields }
func (*PBListString) Descriptor
deprecated
func (*PBListString) Descriptor() ([]byte, []int)
Deprecated: Use PBListString.ProtoReflect.Descriptor instead.
func (*PBListString) GetListString ¶
func (x *PBListString) GetListString() []string
func (*PBListString) ProtoMessage ¶
func (*PBListString) ProtoMessage()
func (*PBListString) ProtoReflect ¶
func (x *PBListString) ProtoReflect() protoreflect.Message
func (*PBListString) Reset ¶
func (x *PBListString) Reset()
func (*PBListString) String ¶
func (x *PBListString) String() string
type PBMapStringList ¶
type PBMapStringList struct { MapStringList map[string]*PBListString `` /* 167-byte string literal not displayed */ // contains filtered or unexported fields }
func (*PBMapStringList) Descriptor
deprecated
func (*PBMapStringList) Descriptor() ([]byte, []int)
Deprecated: Use PBMapStringList.ProtoReflect.Descriptor instead.
func (*PBMapStringList) GetMapStringList ¶
func (x *PBMapStringList) GetMapStringList() map[string]*PBListString
func (*PBMapStringList) ProtoMessage ¶
func (*PBMapStringList) ProtoMessage()
func (*PBMapStringList) ProtoReflect ¶
func (x *PBMapStringList) ProtoReflect() protoreflect.Message
func (*PBMapStringList) Reset ¶
func (x *PBMapStringList) Reset()
func (*PBMapStringList) String ¶
func (x *PBMapStringList) String() string
type PBResponse ¶
type PBResponse struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` 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 (*PBResponse) Descriptor
deprecated
func (*PBResponse) Descriptor() ([]byte, []int)
Deprecated: Use PBResponse.ProtoReflect.Descriptor instead.
func (*PBResponse) GetCode ¶
func (x *PBResponse) GetCode() int32
func (*PBResponse) GetData ¶
func (x *PBResponse) GetData() *anypb.Any
func (*PBResponse) GetMsg ¶
func (x *PBResponse) GetMsg() string
func (*PBResponse) ProtoMessage ¶
func (*PBResponse) ProtoMessage()
func (*PBResponse) ProtoReflect ¶
func (x *PBResponse) ProtoReflect() protoreflect.Message
func (*PBResponse) Reset ¶
func (x *PBResponse) Reset()
func (*PBResponse) String ¶
func (x *PBResponse) String() string
type PBString ¶
type PBString struct { Value string `protobuf:"bytes,1,opt,name=Value,proto3" json:"Value,omitempty"` // contains filtered or unexported fields }
生成go文件命令 protoc -I=. --go_out=./ *.proto 生成dart文件命令 protoc -I=. --dart_out=../../lib/kk_models/kk_pb_type *.proto
func (*PBString) Descriptor
deprecated
func (*PBString) ProtoMessage ¶
func (*PBString) ProtoMessage()
func (*PBString) ProtoReflect ¶
func (x *PBString) ProtoReflect() protoreflect.Message
type PBUint64 ¶
type PBUint64 struct { Value uint64 `protobuf:"varint,1,opt,name=Value,proto3" json:"Value,omitempty"` // contains filtered or unexported fields }
func (*PBUint64) Descriptor
deprecated
func (*PBUint64) ProtoMessage ¶
func (*PBUint64) ProtoMessage()
func (*PBUint64) ProtoReflect ¶
func (x *PBUint64) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.