kk_pb_type

package
v0.0.0-...-cfc9456 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: BSD-3-Clause Imports: 5 Imported by: 1

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use PBBool.ProtoReflect.Descriptor instead.

func (*PBBool) GetValue

func (x *PBBool) GetValue() bool

func (*PBBool) ProtoMessage

func (*PBBool) ProtoMessage()

func (*PBBool) ProtoReflect

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

func (*PBBool) Reset

func (x *PBBool) Reset()

func (*PBBool) String

func (x *PBBool) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use PBFile.ProtoReflect.Descriptor instead.

func (*PBFile) GetBytes

func (x *PBFile) GetBytes() []byte

func (*PBFile) GetName

func (x *PBFile) GetName() string

func (*PBFile) ProtoMessage

func (*PBFile) ProtoMessage()

func (*PBFile) ProtoReflect

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

func (*PBFile) Reset

func (x *PBFile) Reset()

func (*PBFile) String

func (x *PBFile) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use PBString.ProtoReflect.Descriptor instead.

func (*PBString) GetValue

func (x *PBString) GetValue() string

func (*PBString) ProtoMessage

func (*PBString) ProtoMessage()

func (*PBString) ProtoReflect

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

func (*PBString) Reset

func (x *PBString) Reset()

func (*PBString) String

func (x *PBString) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use PBUint64.ProtoReflect.Descriptor instead.

func (*PBUint64) GetValue

func (x *PBUint64) GetValue() uint64

func (*PBUint64) ProtoMessage

func (*PBUint64) ProtoMessage()

func (*PBUint64) ProtoReflect

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

func (*PBUint64) Reset

func (x *PBUint64) Reset()

func (*PBUint64) String

func (x *PBUint64) String() string

Jump to

Keyboard shortcuts

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