Documentation ¶
Index ¶
- Variables
- func RegisterFileBrowserRpcServiceServer(s grpc.ServiceRegistrar, srv FileBrowserRpcServiceServer)
- type DownloadFileData
- func (*DownloadFileData) Descriptor() ([]byte, []int)deprecated
- func (x *DownloadFileData) GetContent() []byte
- func (x *DownloadFileData) GetInfo() *DownloadFileInfo
- func (m *DownloadFileData) GetOption() isDownloadFileData_Option
- func (*DownloadFileData) ProtoMessage()
- func (x *DownloadFileData) ProtoReflect() protoreflect.Message
- func (x *DownloadFileData) Reset()
- func (x *DownloadFileData) String() string
- type DownloadFileData_Content
- type DownloadFileData_Info
- type DownloadFileInfo
- func (*DownloadFileInfo) Descriptor() ([]byte, []int)deprecated
- func (x *DownloadFileInfo) GetChecksum() string
- func (x *DownloadFileInfo) GetFilename() string
- func (x *DownloadFileInfo) GetSize() int64
- func (*DownloadFileInfo) ProtoMessage()
- func (x *DownloadFileInfo) ProtoReflect() protoreflect.Message
- func (x *DownloadFileInfo) Reset()
- func (x *DownloadFileInfo) String() string
- type DownloadFileReply
- func (*DownloadFileReply) Descriptor() ([]byte, []int)deprecated
- func (x *DownloadFileReply) GetData() *DownloadFileData
- func (x *DownloadFileReply) GetMessage() string
- func (m *DownloadFileReply) GetReply() isDownloadFileReply_Reply
- func (x *DownloadFileReply) GetStatus() ReplyStatus
- func (*DownloadFileReply) ProtoMessage()
- func (x *DownloadFileReply) ProtoReflect() protoreflect.Message
- func (x *DownloadFileReply) Reset()
- func (x *DownloadFileReply) String() string
- type DownloadFileReply_Data
- type DownloadFileReply_Message
- type DownloadFileRequest
- func (*DownloadFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DownloadFileRequest) GetFilename() string
- func (x *DownloadFileRequest) GetToken() string
- func (*DownloadFileRequest) ProtoMessage()
- func (x *DownloadFileRequest) ProtoReflect() protoreflect.Message
- func (x *DownloadFileRequest) Reset()
- func (x *DownloadFileRequest) String() string
- type FileBrowserRpcServiceClient
- type FileBrowserRpcServiceServer
- type FileBrowserRpcService_DownloadFileClient
- type FileBrowserRpcService_DownloadFileServer
- type FileBrowserRpcService_UploadFileClient
- type FileBrowserRpcService_UploadFileServer
- type FileListReply
- func (*FileListReply) Descriptor() ([]byte, []int)deprecated
- func (m *FileListReply) GetData() isFileListReply_Data
- func (x *FileListReply) GetList() *List
- func (x *FileListReply) GetMessage() string
- func (x *FileListReply) GetStatus() ReplyStatus
- func (*FileListReply) ProtoMessage()
- func (x *FileListReply) ProtoReflect() protoreflect.Message
- func (x *FileListReply) Reset()
- func (x *FileListReply) String() string
- type FileListReply_List
- type FileListReply_Message
- type FileListRequest
- func (*FileListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FileListRequest) GetFilter() string
- func (x *FileListRequest) GetPath() string
- func (x *FileListRequest) GetToken() string
- func (*FileListRequest) ProtoMessage()
- func (x *FileListRequest) ProtoReflect() protoreflect.Message
- func (x *FileListRequest) Reset()
- func (x *FileListRequest) String() string
- type List
- type LoginReply
- func (*LoginReply) Descriptor() ([]byte, []int)deprecated
- func (m *LoginReply) GetData() isLoginReply_Data
- func (x *LoginReply) GetMessage() string
- func (x *LoginReply) GetStatus() ReplyStatus
- func (x *LoginReply) GetToken() string
- func (*LoginReply) ProtoMessage()
- func (x *LoginReply) ProtoReflect() protoreflect.Message
- func (x *LoginReply) Reset()
- func (x *LoginReply) String() string
- type LoginReply_Message
- type LoginReply_Token
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRequest) GetPassword() string
- func (x *LoginRequest) GetUsername() string
- func (*LoginRequest) ProtoMessage()
- func (x *LoginRequest) ProtoReflect() protoreflect.Message
- func (x *LoginRequest) Reset()
- func (x *LoginRequest) String() string
- type MetaData
- func (*MetaData) Descriptor() ([]byte, []int)deprecated
- func (x *MetaData) GetChecksum() string
- func (x *MetaData) GetFilename() string
- func (x *MetaData) GetPath() string
- func (x *MetaData) GetSize() int64
- func (x *MetaData) GetToken() string
- func (*MetaData) ProtoMessage()
- func (x *MetaData) ProtoReflect() protoreflect.Message
- func (x *MetaData) Reset()
- func (x *MetaData) String() string
- type ReplyStatus
- func (ReplyStatus) Descriptor() protoreflect.EnumDescriptor
- func (x ReplyStatus) Enum() *ReplyStatus
- func (ReplyStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x ReplyStatus) Number() protoreflect.EnumNumber
- func (x ReplyStatus) String() string
- func (ReplyStatus) Type() protoreflect.EnumType
- type UnimplementedFileBrowserRpcServiceServer
- func (UnimplementedFileBrowserRpcServiceServer) DownloadFile(*DownloadFileRequest, FileBrowserRpcService_DownloadFileServer) error
- func (UnimplementedFileBrowserRpcServiceServer) FileList(context.Context, *FileListRequest) (*FileListReply, error)
- func (UnimplementedFileBrowserRpcServiceServer) Login(context.Context, *LoginRequest) (*LoginReply, error)
- func (UnimplementedFileBrowserRpcServiceServer) UploadFile(FileBrowserRpcService_UploadFileServer) error
- type UnsafeFileBrowserRpcServiceServer
- type UploadFileReply
- func (*UploadFileReply) Descriptor() ([]byte, []int)deprecated
- func (x *UploadFileReply) GetMessage() string
- func (x *UploadFileReply) GetStatus() ReplyStatus
- func (*UploadFileReply) ProtoMessage()
- func (x *UploadFileReply) ProtoReflect() protoreflect.Message
- func (x *UploadFileReply) Reset()
- func (x *UploadFileReply) String() string
- type UploadFileRequest
- func (*UploadFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UploadFileRequest) GetContent() []byte
- func (m *UploadFileRequest) GetData() isUploadFileRequest_Data
- func (x *UploadFileRequest) GetMetadata() *MetaData
- func (*UploadFileRequest) ProtoMessage()
- func (x *UploadFileRequest) ProtoReflect() protoreflect.Message
- func (x *UploadFileRequest) Reset()
- func (x *UploadFileRequest) String() string
- type UploadFileRequest_Content
- type UploadFileRequest_Metadata
Constants ¶
This section is empty.
Variables ¶
var ( ReplyStatus_name = map[int32]string{ 0: "Unknown", 1: "Ok", 2: "Failed", } ReplyStatus_value = map[string]int32{ "Unknown": 0, "Ok": 1, "Failed": 2, } )
Enum value maps for ReplyStatus.
var FileBrowserRpcService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "FileBrowserRpcService", HandlerType: (*FileBrowserRpcServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Login", Handler: _FileBrowserRpcService_Login_Handler, }, { MethodName: "FileList", Handler: _FileBrowserRpcService_FileList_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "UploadFile", Handler: _FileBrowserRpcService_UploadFile_Handler, ClientStreams: true, }, { StreamName: "DownloadFile", Handler: _FileBrowserRpcService_DownloadFile_Handler, ServerStreams: true, }, }, Metadata: "filebrowser.proto", }
FileBrowserRpcService_ServiceDesc is the grpc.ServiceDesc for FileBrowserRpcService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_filebrowser_proto protoreflect.FileDescriptor
Functions ¶
func RegisterFileBrowserRpcServiceServer ¶
func RegisterFileBrowserRpcServiceServer(s grpc.ServiceRegistrar, srv FileBrowserRpcServiceServer)
Types ¶
type DownloadFileData ¶
type DownloadFileData struct { // Types that are assignable to Option: // *DownloadFileData_Info // *DownloadFileData_Content Option isDownloadFileData_Option `protobuf_oneof:"option"` // contains filtered or unexported fields }
func (*DownloadFileData) Descriptor
deprecated
func (*DownloadFileData) Descriptor() ([]byte, []int)
Deprecated: Use DownloadFileData.ProtoReflect.Descriptor instead.
func (*DownloadFileData) GetContent ¶
func (x *DownloadFileData) GetContent() []byte
func (*DownloadFileData) GetInfo ¶
func (x *DownloadFileData) GetInfo() *DownloadFileInfo
func (*DownloadFileData) GetOption ¶
func (m *DownloadFileData) GetOption() isDownloadFileData_Option
func (*DownloadFileData) ProtoMessage ¶
func (*DownloadFileData) ProtoMessage()
func (*DownloadFileData) ProtoReflect ¶
func (x *DownloadFileData) ProtoReflect() protoreflect.Message
func (*DownloadFileData) Reset ¶
func (x *DownloadFileData) Reset()
func (*DownloadFileData) String ¶
func (x *DownloadFileData) String() string
type DownloadFileData_Content ¶
type DownloadFileData_Content struct {
Content []byte `protobuf:"bytes,2,opt,name=content,proto3,oneof"`
}
type DownloadFileData_Info ¶
type DownloadFileData_Info struct {
Info *DownloadFileInfo `protobuf:"bytes,1,opt,name=info,proto3,oneof"`
}
type DownloadFileInfo ¶
type DownloadFileInfo struct { Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"` Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` Checksum string `protobuf:"bytes,3,opt,name=checksum,proto3" json:"checksum,omitempty"` // contains filtered or unexported fields }
func (*DownloadFileInfo) Descriptor
deprecated
func (*DownloadFileInfo) Descriptor() ([]byte, []int)
Deprecated: Use DownloadFileInfo.ProtoReflect.Descriptor instead.
func (*DownloadFileInfo) GetChecksum ¶
func (x *DownloadFileInfo) GetChecksum() string
func (*DownloadFileInfo) GetFilename ¶
func (x *DownloadFileInfo) GetFilename() string
func (*DownloadFileInfo) GetSize ¶
func (x *DownloadFileInfo) GetSize() int64
func (*DownloadFileInfo) ProtoMessage ¶
func (*DownloadFileInfo) ProtoMessage()
func (*DownloadFileInfo) ProtoReflect ¶
func (x *DownloadFileInfo) ProtoReflect() protoreflect.Message
func (*DownloadFileInfo) Reset ¶
func (x *DownloadFileInfo) Reset()
func (*DownloadFileInfo) String ¶
func (x *DownloadFileInfo) String() string
type DownloadFileReply ¶
type DownloadFileReply struct { Status ReplyStatus `protobuf:"varint,1,opt,name=status,proto3,enum=ReplyStatus" json:"status,omitempty"` // Types that are assignable to Reply: // *DownloadFileReply_Message // *DownloadFileReply_Data Reply isDownloadFileReply_Reply `protobuf_oneof:"reply"` // contains filtered or unexported fields }
func (*DownloadFileReply) Descriptor
deprecated
func (*DownloadFileReply) Descriptor() ([]byte, []int)
Deprecated: Use DownloadFileReply.ProtoReflect.Descriptor instead.
func (*DownloadFileReply) GetData ¶
func (x *DownloadFileReply) GetData() *DownloadFileData
func (*DownloadFileReply) GetMessage ¶
func (x *DownloadFileReply) GetMessage() string
func (*DownloadFileReply) GetReply ¶
func (m *DownloadFileReply) GetReply() isDownloadFileReply_Reply
func (*DownloadFileReply) GetStatus ¶
func (x *DownloadFileReply) GetStatus() ReplyStatus
func (*DownloadFileReply) ProtoMessage ¶
func (*DownloadFileReply) ProtoMessage()
func (*DownloadFileReply) ProtoReflect ¶
func (x *DownloadFileReply) ProtoReflect() protoreflect.Message
func (*DownloadFileReply) Reset ¶
func (x *DownloadFileReply) Reset()
func (*DownloadFileReply) String ¶
func (x *DownloadFileReply) String() string
type DownloadFileReply_Data ¶
type DownloadFileReply_Data struct {
Data *DownloadFileData `protobuf:"bytes,3,opt,name=data,proto3,oneof"`
}
type DownloadFileReply_Message ¶
type DownloadFileReply_Message struct {
Message string `protobuf:"bytes,2,opt,name=message,proto3,oneof"`
}
type DownloadFileRequest ¶
type DownloadFileRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` Filename string `protobuf:"bytes,2,opt,name=filename,proto3" json:"filename,omitempty"` // contains filtered or unexported fields }
download file request and response
func (*DownloadFileRequest) Descriptor
deprecated
func (*DownloadFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use DownloadFileRequest.ProtoReflect.Descriptor instead.
func (*DownloadFileRequest) GetFilename ¶
func (x *DownloadFileRequest) GetFilename() string
func (*DownloadFileRequest) GetToken ¶
func (x *DownloadFileRequest) GetToken() string
func (*DownloadFileRequest) ProtoMessage ¶
func (*DownloadFileRequest) ProtoMessage()
func (*DownloadFileRequest) ProtoReflect ¶
func (x *DownloadFileRequest) ProtoReflect() protoreflect.Message
func (*DownloadFileRequest) Reset ¶
func (x *DownloadFileRequest) Reset()
func (*DownloadFileRequest) String ¶
func (x *DownloadFileRequest) String() string
type FileBrowserRpcServiceClient ¶
type FileBrowserRpcServiceClient interface { Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginReply, error) FileList(ctx context.Context, in *FileListRequest, opts ...grpc.CallOption) (*FileListReply, error) UploadFile(ctx context.Context, opts ...grpc.CallOption) (FileBrowserRpcService_UploadFileClient, error) DownloadFile(ctx context.Context, in *DownloadFileRequest, opts ...grpc.CallOption) (FileBrowserRpcService_DownloadFileClient, error) }
FileBrowserRpcServiceClient is the client API for FileBrowserRpcService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewFileBrowserRpcServiceClient ¶
func NewFileBrowserRpcServiceClient(cc grpc.ClientConnInterface) FileBrowserRpcServiceClient
type FileBrowserRpcServiceServer ¶
type FileBrowserRpcServiceServer interface { Login(context.Context, *LoginRequest) (*LoginReply, error) FileList(context.Context, *FileListRequest) (*FileListReply, error) UploadFile(FileBrowserRpcService_UploadFileServer) error DownloadFile(*DownloadFileRequest, FileBrowserRpcService_DownloadFileServer) error // contains filtered or unexported methods }
FileBrowserRpcServiceServer is the server API for FileBrowserRpcService service. All implementations must embed UnimplementedFileBrowserRpcServiceServer for forward compatibility
type FileBrowserRpcService_DownloadFileClient ¶
type FileBrowserRpcService_DownloadFileClient interface { Recv() (*DownloadFileReply, error) grpc.ClientStream }
type FileBrowserRpcService_DownloadFileServer ¶
type FileBrowserRpcService_DownloadFileServer interface { Send(*DownloadFileReply) error grpc.ServerStream }
type FileBrowserRpcService_UploadFileClient ¶
type FileBrowserRpcService_UploadFileClient interface { Send(*UploadFileRequest) error CloseAndRecv() (*UploadFileReply, error) grpc.ClientStream }
type FileBrowserRpcService_UploadFileServer ¶
type FileBrowserRpcService_UploadFileServer interface { SendAndClose(*UploadFileReply) error Recv() (*UploadFileRequest, error) grpc.ServerStream }
type FileListReply ¶
type FileListReply struct { Status ReplyStatus `protobuf:"varint,1,opt,name=status,proto3,enum=ReplyStatus" json:"status,omitempty"` // Types that are assignable to Data: // *FileListReply_Message // *FileListReply_List Data isFileListReply_Data `protobuf_oneof:"data"` // contains filtered or unexported fields }
func (*FileListReply) Descriptor
deprecated
func (*FileListReply) Descriptor() ([]byte, []int)
Deprecated: Use FileListReply.ProtoReflect.Descriptor instead.
func (*FileListReply) GetData ¶
func (m *FileListReply) GetData() isFileListReply_Data
func (*FileListReply) GetList ¶
func (x *FileListReply) GetList() *List
func (*FileListReply) GetMessage ¶
func (x *FileListReply) GetMessage() string
func (*FileListReply) GetStatus ¶
func (x *FileListReply) GetStatus() ReplyStatus
func (*FileListReply) ProtoMessage ¶
func (*FileListReply) ProtoMessage()
func (*FileListReply) ProtoReflect ¶
func (x *FileListReply) ProtoReflect() protoreflect.Message
func (*FileListReply) Reset ¶
func (x *FileListReply) Reset()
func (*FileListReply) String ¶
func (x *FileListReply) String() string
type FileListReply_List ¶
type FileListReply_List struct {
List *List `protobuf:"bytes,3,opt,name=list,proto3,oneof"`
}
type FileListReply_Message ¶
type FileListReply_Message struct {
Message string `protobuf:"bytes,2,opt,name=message,proto3,oneof"`
}
type FileListRequest ¶
type FileListRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` Filter *string `protobuf:"bytes,3,opt,name=filter,proto3,oneof" json:"filter,omitempty"` // contains filtered or unexported fields }
file list request and response
func (*FileListRequest) Descriptor
deprecated
func (*FileListRequest) Descriptor() ([]byte, []int)
Deprecated: Use FileListRequest.ProtoReflect.Descriptor instead.
func (*FileListRequest) GetFilter ¶
func (x *FileListRequest) GetFilter() string
func (*FileListRequest) GetPath ¶
func (x *FileListRequest) GetPath() string
func (*FileListRequest) GetToken ¶
func (x *FileListRequest) GetToken() string
func (*FileListRequest) ProtoMessage ¶
func (*FileListRequest) ProtoMessage()
func (*FileListRequest) ProtoReflect ¶
func (x *FileListRequest) ProtoReflect() protoreflect.Message
func (*FileListRequest) Reset ¶
func (x *FileListRequest) Reset()
func (*FileListRequest) String ¶
func (x *FileListRequest) String() string
type List ¶
type List struct { Item []string `protobuf:"bytes,1,rep,name=item,proto3" json:"item,omitempty"` // contains filtered or unexported fields }
func (*List) Descriptor
deprecated
func (*List) ProtoMessage ¶
func (*List) ProtoMessage()
func (*List) ProtoReflect ¶
func (x *List) ProtoReflect() protoreflect.Message
type LoginReply ¶
type LoginReply struct { Status ReplyStatus `protobuf:"varint,1,opt,name=status,proto3,enum=ReplyStatus" json:"status,omitempty"` // Types that are assignable to Data: // *LoginReply_Message // *LoginReply_Token Data isLoginReply_Data `protobuf_oneof:"data"` // contains filtered or unexported fields }
func (*LoginReply) Descriptor
deprecated
func (*LoginReply) Descriptor() ([]byte, []int)
Deprecated: Use LoginReply.ProtoReflect.Descriptor instead.
func (*LoginReply) GetData ¶
func (m *LoginReply) GetData() isLoginReply_Data
func (*LoginReply) GetMessage ¶
func (x *LoginReply) GetMessage() string
func (*LoginReply) GetStatus ¶
func (x *LoginReply) GetStatus() ReplyStatus
func (*LoginReply) GetToken ¶
func (x *LoginReply) GetToken() string
func (*LoginReply) ProtoMessage ¶
func (*LoginReply) ProtoMessage()
func (*LoginReply) ProtoReflect ¶
func (x *LoginReply) ProtoReflect() protoreflect.Message
func (*LoginReply) Reset ¶
func (x *LoginReply) Reset()
func (*LoginReply) String ¶
func (x *LoginReply) String() string
type LoginReply_Message ¶
type LoginReply_Message struct {
Message string `protobuf:"bytes,2,opt,name=message,proto3,oneof"`
}
type LoginReply_Token ¶
type LoginReply_Token struct {
Token string `protobuf:"bytes,3,opt,name=token,proto3,oneof"`
}
type LoginRequest ¶
type LoginRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
login request and response
func (*LoginRequest) Descriptor
deprecated
func (*LoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
func (*LoginRequest) GetPassword ¶
func (x *LoginRequest) GetPassword() string
func (*LoginRequest) GetUsername ¶
func (x *LoginRequest) GetUsername() string
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) ProtoReflect ¶
func (x *LoginRequest) ProtoReflect() protoreflect.Message
func (*LoginRequest) Reset ¶
func (x *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (x *LoginRequest) String() string
type MetaData ¶
type MetaData struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` Filename string `protobuf:"bytes,3,opt,name=filename,proto3" json:"filename,omitempty"` Size int64 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"` Checksum string `protobuf:"bytes,5,opt,name=checksum,proto3" json:"checksum,omitempty"` // contains filtered or unexported fields }
func (*MetaData) Descriptor
deprecated
func (*MetaData) GetChecksum ¶
func (*MetaData) GetFilename ¶
func (*MetaData) ProtoMessage ¶
func (*MetaData) ProtoMessage()
func (*MetaData) ProtoReflect ¶
func (x *MetaData) ProtoReflect() protoreflect.Message
type ReplyStatus ¶
type ReplyStatus int32
reusable messages
const ( ReplyStatus_Unknown ReplyStatus = 0 ReplyStatus_Ok ReplyStatus = 1 ReplyStatus_Failed ReplyStatus = 2 )
func (ReplyStatus) Descriptor ¶
func (ReplyStatus) Descriptor() protoreflect.EnumDescriptor
func (ReplyStatus) Enum ¶
func (x ReplyStatus) Enum() *ReplyStatus
func (ReplyStatus) EnumDescriptor
deprecated
func (ReplyStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use ReplyStatus.Descriptor instead.
func (ReplyStatus) Number ¶
func (x ReplyStatus) Number() protoreflect.EnumNumber
func (ReplyStatus) String ¶
func (x ReplyStatus) String() string
func (ReplyStatus) Type ¶
func (ReplyStatus) Type() protoreflect.EnumType
type UnimplementedFileBrowserRpcServiceServer ¶
type UnimplementedFileBrowserRpcServiceServer struct { }
UnimplementedFileBrowserRpcServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedFileBrowserRpcServiceServer) DownloadFile ¶
func (UnimplementedFileBrowserRpcServiceServer) DownloadFile(*DownloadFileRequest, FileBrowserRpcService_DownloadFileServer) error
func (UnimplementedFileBrowserRpcServiceServer) FileList ¶
func (UnimplementedFileBrowserRpcServiceServer) FileList(context.Context, *FileListRequest) (*FileListReply, error)
func (UnimplementedFileBrowserRpcServiceServer) Login ¶
func (UnimplementedFileBrowserRpcServiceServer) Login(context.Context, *LoginRequest) (*LoginReply, error)
func (UnimplementedFileBrowserRpcServiceServer) UploadFile ¶
func (UnimplementedFileBrowserRpcServiceServer) UploadFile(FileBrowserRpcService_UploadFileServer) error
type UnsafeFileBrowserRpcServiceServer ¶
type UnsafeFileBrowserRpcServiceServer interface {
// contains filtered or unexported methods
}
UnsafeFileBrowserRpcServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FileBrowserRpcServiceServer will result in compilation errors.
type UploadFileReply ¶
type UploadFileReply struct { Status ReplyStatus `protobuf:"varint,1,opt,name=status,proto3,enum=ReplyStatus" json:"status,omitempty"` Message *string `protobuf:"bytes,2,opt,name=message,proto3,oneof" json:"message,omitempty"` // contains filtered or unexported fields }
func (*UploadFileReply) Descriptor
deprecated
func (*UploadFileReply) Descriptor() ([]byte, []int)
Deprecated: Use UploadFileReply.ProtoReflect.Descriptor instead.
func (*UploadFileReply) GetMessage ¶
func (x *UploadFileReply) GetMessage() string
func (*UploadFileReply) GetStatus ¶
func (x *UploadFileReply) GetStatus() ReplyStatus
func (*UploadFileReply) ProtoMessage ¶
func (*UploadFileReply) ProtoMessage()
func (*UploadFileReply) ProtoReflect ¶
func (x *UploadFileReply) ProtoReflect() protoreflect.Message
func (*UploadFileReply) Reset ¶
func (x *UploadFileReply) Reset()
func (*UploadFileReply) String ¶
func (x *UploadFileReply) String() string
type UploadFileRequest ¶
type UploadFileRequest struct { // Types that are assignable to Data: // *UploadFileRequest_Metadata // *UploadFileRequest_Content Data isUploadFileRequest_Data `protobuf_oneof:"data"` // contains filtered or unexported fields }
upload file request and response
func (*UploadFileRequest) Descriptor
deprecated
func (*UploadFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use UploadFileRequest.ProtoReflect.Descriptor instead.
func (*UploadFileRequest) GetContent ¶
func (x *UploadFileRequest) GetContent() []byte
func (*UploadFileRequest) GetData ¶
func (m *UploadFileRequest) GetData() isUploadFileRequest_Data
func (*UploadFileRequest) GetMetadata ¶
func (x *UploadFileRequest) GetMetadata() *MetaData
func (*UploadFileRequest) ProtoMessage ¶
func (*UploadFileRequest) ProtoMessage()
func (*UploadFileRequest) ProtoReflect ¶
func (x *UploadFileRequest) ProtoReflect() protoreflect.Message
func (*UploadFileRequest) Reset ¶
func (x *UploadFileRequest) Reset()
func (*UploadFileRequest) String ¶
func (x *UploadFileRequest) String() string
type UploadFileRequest_Content ¶
type UploadFileRequest_Content struct {
Content []byte `protobuf:"bytes,3,opt,name=content,proto3,oneof"`
}
type UploadFileRequest_Metadata ¶
type UploadFileRequest_Metadata struct {
Metadata *MetaData `protobuf:"bytes,2,opt,name=metadata,proto3,oneof"`
}