Documentation ¶
Index ¶
- Variables
- func NewFileEndpoints() []*api.Endpoint
- func RegisterFileHandler(s server.Server, hdlr FileHandler, opts ...server.HandlerOption) error
- type DealFileRequest
- func (*DealFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DealFileRequest) GetFileName() string
- func (x *DealFileRequest) GetParam() string
- func (*DealFileRequest) ProtoMessage()
- func (x *DealFileRequest) ProtoReflect() protoreflect.Message
- func (x *DealFileRequest) Reset()
- func (x *DealFileRequest) String() string
- type DealFileRespond
- type FileByte
- type FileHandler
- type FileMsg
- type FileService
- type File_FileService
- type File_FileStream
Constants ¶
This section is empty.
Variables ¶
View Source
var File_file_proto protoreflect.FileDescriptor
Functions ¶
func NewFileEndpoints ¶
func RegisterFileHandler ¶
func RegisterFileHandler(s server.Server, hdlr FileHandler, opts ...server.HandlerOption) error
Types ¶
type DealFileRequest ¶
type DealFileRequest struct { FileName string `protobuf:"bytes,1,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` Param string `protobuf:"bytes,2,opt,name=param,proto3" json:"param,omitempty"` // contains filtered or unexported fields }
func (*DealFileRequest) Descriptor
deprecated
func (*DealFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use DealFileRequest.ProtoReflect.Descriptor instead.
func (*DealFileRequest) GetFileName ¶
func (x *DealFileRequest) GetFileName() string
func (*DealFileRequest) GetParam ¶
func (x *DealFileRequest) GetParam() string
func (*DealFileRequest) ProtoMessage ¶
func (*DealFileRequest) ProtoMessage()
func (*DealFileRequest) ProtoReflect ¶
func (x *DealFileRequest) ProtoReflect() protoreflect.Message
func (*DealFileRequest) Reset ¶
func (x *DealFileRequest) Reset()
func (*DealFileRequest) String ¶
func (x *DealFileRequest) String() string
type DealFileRespond ¶
type DealFileRespond struct { Md5 string `protobuf:"bytes,1,opt,name=md5,proto3" json:"md5,omitempty"` // contains filtered or unexported fields }
func (*DealFileRespond) Descriptor
deprecated
func (*DealFileRespond) Descriptor() ([]byte, []int)
Deprecated: Use DealFileRespond.ProtoReflect.Descriptor instead.
func (*DealFileRespond) GetMd5 ¶
func (x *DealFileRespond) GetMd5() string
func (*DealFileRespond) ProtoMessage ¶
func (*DealFileRespond) ProtoMessage()
func (*DealFileRespond) ProtoReflect ¶
func (x *DealFileRespond) ProtoReflect() protoreflect.Message
func (*DealFileRespond) Reset ¶
func (x *DealFileRespond) Reset()
func (*DealFileRespond) String ¶
func (x *DealFileRespond) String() string
type FileByte ¶
type FileByte struct { Byte []byte `protobuf:"bytes,1,opt,name=byte,proto3" json:"byte,omitempty"` Len int64 `protobuf:"varint,2,opt,name=len,proto3" json:"len,omitempty"` // contains filtered or unexported fields }
文件字节内容
func (*FileByte) Descriptor
deprecated
func (*FileByte) ProtoMessage ¶
func (*FileByte) ProtoMessage()
func (*FileByte) ProtoReflect ¶
func (x *FileByte) ProtoReflect() protoreflect.Message
type FileHandler ¶
type FileHandler interface { // 定义一个客户端流式调用 File(context.Context, File_FileStream) error DealFile(context.Context, *DealFileRequest, *DealFileRespond) error }
type FileMsg ¶
type FileMsg struct { FileName string `protobuf:"bytes,1,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` // contains filtered or unexported fields }
文件传输完成后返回文件信息
func (*FileMsg) Descriptor
deprecated
func (*FileMsg) GetFileName ¶
func (*FileMsg) ProtoMessage ¶
func (*FileMsg) ProtoMessage()
func (*FileMsg) ProtoReflect ¶
func (x *FileMsg) ProtoReflect() protoreflect.Message
type FileService ¶
type FileService interface { // 定义一个客户端流式调用 File(ctx context.Context, opts ...client.CallOption) (File_FileService, error) DealFile(ctx context.Context, in *DealFileRequest, opts ...client.CallOption) (*DealFileRespond, error) }
func NewFileService ¶
func NewFileService(name string, c client.Client) FileService
type File_FileService ¶
Click to show internal directories.
Click to hide internal directories.