Documentation ¶
Index ¶
- Variables
- func RegisterFileBrowserServiceServer(s grpc.ServiceRegistrar, srv FileBrowserServiceServer)
- type DownloadFileRequest
- func (*DownloadFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DownloadFileRequest) GetPath() 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 DownloadFileResponse
- func (*DownloadFileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DownloadFileResponse) GetChunk() []byte
- func (m *DownloadFileResponse) GetData() isDownloadFileResponse_Data
- func (x *DownloadFileResponse) GetMessage() string
- func (x *DownloadFileResponse) GetStatus() ResponseStatus
- func (*DownloadFileResponse) ProtoMessage()
- func (x *DownloadFileResponse) ProtoReflect() protoreflect.Message
- func (x *DownloadFileResponse) Reset()
- func (x *DownloadFileResponse) String() string
- type DownloadFileResponse_Chunk
- type DownloadFileResponse_Message
- type FileBrowserServiceClient
- type FileBrowserServiceServer
- type ListFilesRequest
- func (*ListFilesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListFilesRequest) GetFilter() string
- func (x *ListFilesRequest) GetPath() string
- func (x *ListFilesRequest) GetToken() string
- func (*ListFilesRequest) ProtoMessage()
- func (x *ListFilesRequest) ProtoReflect() protoreflect.Message
- func (x *ListFilesRequest) Reset()
- func (x *ListFilesRequest) String() string
- type ListFilesResponse
- func (*ListFilesResponse) Descriptor() ([]byte, []int)deprecated
- func (m *ListFilesResponse) GetData() isListFilesResponse_Data
- func (x *ListFilesResponse) GetList() *StringList
- func (x *ListFilesResponse) GetMessage() string
- func (x *ListFilesResponse) GetStatus() ResponseStatus
- func (*ListFilesResponse) ProtoMessage()
- func (x *ListFilesResponse) ProtoReflect() protoreflect.Message
- func (x *ListFilesResponse) Reset()
- func (x *ListFilesResponse) String() string
- type ListFilesResponse_List
- type ListFilesResponse_Message
- 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 LoginResponse
- func (*LoginResponse) Descriptor() ([]byte, []int)deprecated
- func (m *LoginResponse) GetData() isLoginResponse_Data
- func (x *LoginResponse) GetMessage() string
- func (x *LoginResponse) GetStatus() ResponseStatus
- func (x *LoginResponse) GetToken() string
- func (*LoginResponse) ProtoMessage()
- func (x *LoginResponse) ProtoReflect() protoreflect.Message
- func (x *LoginResponse) Reset()
- func (x *LoginResponse) String() string
- type LoginResponse_Message
- type LoginResponse_Token
- type ResponseStatus
- func (ResponseStatus) Descriptor() protoreflect.EnumDescriptor
- func (x ResponseStatus) Enum() *ResponseStatus
- func (ResponseStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x ResponseStatus) Number() protoreflect.EnumNumber
- func (x ResponseStatus) String() string
- func (ResponseStatus) Type() protoreflect.EnumType
- type StringList
- type UnimplementedFileBrowserServiceServer
- func (UnimplementedFileBrowserServiceServer) DownloadFile(context.Context, *DownloadFileRequest) (*DownloadFileResponse, error)
- func (UnimplementedFileBrowserServiceServer) ListFiles(context.Context, *ListFilesRequest) (*ListFilesResponse, error)
- func (UnimplementedFileBrowserServiceServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
- func (UnimplementedFileBrowserServiceServer) UploadFile(context.Context, *UploadFileRequest) (*UploadFileResponse, error)
- type UnsafeFileBrowserServiceServer
- type UploadFileRequest
- func (*UploadFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UploadFileRequest) GetChunk() []byte
- func (x *UploadFileRequest) GetFilename() string
- func (x *UploadFileRequest) GetPath() string
- func (x *UploadFileRequest) GetToken() string
- func (*UploadFileRequest) ProtoMessage()
- func (x *UploadFileRequest) ProtoReflect() protoreflect.Message
- func (x *UploadFileRequest) Reset()
- func (x *UploadFileRequest) String() string
- type UploadFileResponse
- func (*UploadFileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UploadFileResponse) GetMessage() string
- func (x *UploadFileResponse) GetStatus() ResponseStatus
- func (*UploadFileResponse) ProtoMessage()
- func (x *UploadFileResponse) ProtoReflect() protoreflect.Message
- func (x *UploadFileResponse) Reset()
- func (x *UploadFileResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var ( ResponseStatus_name = map[int32]string{ 0: "Unknown", 1: "Ok", 2: "Failed", } ResponseStatus_value = map[string]int32{ "Unknown": 0, "Ok": 1, "Failed": 2, } )
Enum value maps for ResponseStatus.
var FileBrowserService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.FileBrowserService", HandlerType: (*FileBrowserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Login", Handler: _FileBrowserService_Login_Handler, }, { MethodName: "ListFiles", Handler: _FileBrowserService_ListFiles_Handler, }, { MethodName: "UploadFile", Handler: _FileBrowserService_UploadFile_Handler, }, { MethodName: "DownloadFile", Handler: _FileBrowserService_DownloadFile_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/filebrowser.proto", }
FileBrowserService_ServiceDesc is the grpc.ServiceDesc for FileBrowserService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_proto_filebrowser_proto protoreflect.FileDescriptor
Functions ¶
func RegisterFileBrowserServiceServer ¶
func RegisterFileBrowserServiceServer(s grpc.ServiceRegistrar, srv FileBrowserServiceServer)
Types ¶
type DownloadFileRequest ¶
type DownloadFileRequest 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"` // contains filtered or unexported fields }
func (*DownloadFileRequest) Descriptor
deprecated
func (*DownloadFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use DownloadFileRequest.ProtoReflect.Descriptor instead.
func (*DownloadFileRequest) GetPath ¶
func (x *DownloadFileRequest) GetPath() 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 DownloadFileResponse ¶
type DownloadFileResponse struct { Status ResponseStatus `protobuf:"varint,1,opt,name=Status,proto3,enum=proto.ResponseStatus" json:"Status,omitempty"` // Types that are assignable to Data: // *DownloadFileResponse_Message // *DownloadFileResponse_Chunk Data isDownloadFileResponse_Data `protobuf_oneof:"data"` // contains filtered or unexported fields }
func (*DownloadFileResponse) Descriptor
deprecated
func (*DownloadFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use DownloadFileResponse.ProtoReflect.Descriptor instead.
func (*DownloadFileResponse) GetChunk ¶
func (x *DownloadFileResponse) GetChunk() []byte
func (*DownloadFileResponse) GetData ¶
func (m *DownloadFileResponse) GetData() isDownloadFileResponse_Data
func (*DownloadFileResponse) GetMessage ¶
func (x *DownloadFileResponse) GetMessage() string
func (*DownloadFileResponse) GetStatus ¶
func (x *DownloadFileResponse) GetStatus() ResponseStatus
func (*DownloadFileResponse) ProtoMessage ¶
func (*DownloadFileResponse) ProtoMessage()
func (*DownloadFileResponse) ProtoReflect ¶
func (x *DownloadFileResponse) ProtoReflect() protoreflect.Message
func (*DownloadFileResponse) Reset ¶
func (x *DownloadFileResponse) Reset()
func (*DownloadFileResponse) String ¶
func (x *DownloadFileResponse) String() string
type DownloadFileResponse_Chunk ¶
type DownloadFileResponse_Chunk struct {
Chunk []byte `protobuf:"bytes,3,opt,name=chunk,proto3,oneof"`
}
type DownloadFileResponse_Message ¶
type DownloadFileResponse_Message struct {
Message string `protobuf:"bytes,2,opt,name=message,proto3,oneof"`
}
type FileBrowserServiceClient ¶
type FileBrowserServiceClient interface { Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) ListFiles(ctx context.Context, in *ListFilesRequest, opts ...grpc.CallOption) (*ListFilesResponse, error) UploadFile(ctx context.Context, in *UploadFileRequest, opts ...grpc.CallOption) (*UploadFileResponse, error) DownloadFile(ctx context.Context, in *DownloadFileRequest, opts ...grpc.CallOption) (*DownloadFileResponse, error) }
FileBrowserServiceClient is the client API for FileBrowserService 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 NewFileBrowserServiceClient ¶
func NewFileBrowserServiceClient(cc grpc.ClientConnInterface) FileBrowserServiceClient
type FileBrowserServiceServer ¶
type FileBrowserServiceServer interface { Login(context.Context, *LoginRequest) (*LoginResponse, error) ListFiles(context.Context, *ListFilesRequest) (*ListFilesResponse, error) UploadFile(context.Context, *UploadFileRequest) (*UploadFileResponse, error) DownloadFile(context.Context, *DownloadFileRequest) (*DownloadFileResponse, error) // contains filtered or unexported methods }
FileBrowserServiceServer is the server API for FileBrowserService service. All implementations must embed UnimplementedFileBrowserServiceServer for forward compatibility
type ListFilesRequest ¶
type ListFilesRequest 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 }
func (*ListFilesRequest) Descriptor
deprecated
func (*ListFilesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListFilesRequest.ProtoReflect.Descriptor instead.
func (*ListFilesRequest) GetFilter ¶
func (x *ListFilesRequest) GetFilter() string
func (*ListFilesRequest) GetPath ¶
func (x *ListFilesRequest) GetPath() string
func (*ListFilesRequest) GetToken ¶
func (x *ListFilesRequest) GetToken() string
func (*ListFilesRequest) ProtoMessage ¶
func (*ListFilesRequest) ProtoMessage()
func (*ListFilesRequest) ProtoReflect ¶
func (x *ListFilesRequest) ProtoReflect() protoreflect.Message
func (*ListFilesRequest) Reset ¶
func (x *ListFilesRequest) Reset()
func (*ListFilesRequest) String ¶
func (x *ListFilesRequest) String() string
type ListFilesResponse ¶
type ListFilesResponse struct { Status ResponseStatus `protobuf:"varint,1,opt,name=status,proto3,enum=proto.ResponseStatus" json:"status,omitempty"` // Types that are assignable to Data: // *ListFilesResponse_Message // *ListFilesResponse_List Data isListFilesResponse_Data `protobuf_oneof:"data"` // contains filtered or unexported fields }
func (*ListFilesResponse) Descriptor
deprecated
func (*ListFilesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListFilesResponse.ProtoReflect.Descriptor instead.
func (*ListFilesResponse) GetData ¶
func (m *ListFilesResponse) GetData() isListFilesResponse_Data
func (*ListFilesResponse) GetList ¶
func (x *ListFilesResponse) GetList() *StringList
func (*ListFilesResponse) GetMessage ¶
func (x *ListFilesResponse) GetMessage() string
func (*ListFilesResponse) GetStatus ¶
func (x *ListFilesResponse) GetStatus() ResponseStatus
func (*ListFilesResponse) ProtoMessage ¶
func (*ListFilesResponse) ProtoMessage()
func (*ListFilesResponse) ProtoReflect ¶
func (x *ListFilesResponse) ProtoReflect() protoreflect.Message
func (*ListFilesResponse) Reset ¶
func (x *ListFilesResponse) Reset()
func (*ListFilesResponse) String ¶
func (x *ListFilesResponse) String() string
type ListFilesResponse_List ¶
type ListFilesResponse_List struct {
List *StringList `protobuf:"bytes,3,opt,name=list,proto3,oneof"`
}
type ListFilesResponse_Message ¶
type ListFilesResponse_Message struct {
Message string `protobuf:"bytes,2,opt,name=message,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 }
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 LoginResponse ¶
type LoginResponse struct { Status ResponseStatus `protobuf:"varint,1,opt,name=status,proto3,enum=proto.ResponseStatus" json:"status,omitempty"` // Types that are assignable to Data: // *LoginResponse_Message // *LoginResponse_Token Data isLoginResponse_Data `protobuf_oneof:"data"` // contains filtered or unexported fields }
func (*LoginResponse) Descriptor
deprecated
func (*LoginResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
func (*LoginResponse) GetData ¶
func (m *LoginResponse) GetData() isLoginResponse_Data
func (*LoginResponse) GetMessage ¶
func (x *LoginResponse) GetMessage() string
func (*LoginResponse) GetStatus ¶
func (x *LoginResponse) GetStatus() ResponseStatus
func (*LoginResponse) GetToken ¶
func (x *LoginResponse) GetToken() string
func (*LoginResponse) ProtoMessage ¶
func (*LoginResponse) ProtoMessage()
func (*LoginResponse) ProtoReflect ¶
func (x *LoginResponse) ProtoReflect() protoreflect.Message
func (*LoginResponse) Reset ¶
func (x *LoginResponse) Reset()
func (*LoginResponse) String ¶
func (x *LoginResponse) String() string
type LoginResponse_Message ¶
type LoginResponse_Message struct {
Message string `protobuf:"bytes,2,opt,name=message,proto3,oneof"`
}
type LoginResponse_Token ¶
type LoginResponse_Token struct {
Token string `protobuf:"bytes,3,opt,name=token,proto3,oneof"`
}
type ResponseStatus ¶
type ResponseStatus int32
const ( ResponseStatus_Unknown ResponseStatus = 0 ResponseStatus_Ok ResponseStatus = 1 ResponseStatus_Failed ResponseStatus = 2 )
func (ResponseStatus) Descriptor ¶
func (ResponseStatus) Descriptor() protoreflect.EnumDescriptor
func (ResponseStatus) Enum ¶
func (x ResponseStatus) Enum() *ResponseStatus
func (ResponseStatus) EnumDescriptor
deprecated
func (ResponseStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use ResponseStatus.Descriptor instead.
func (ResponseStatus) Number ¶
func (x ResponseStatus) Number() protoreflect.EnumNumber
func (ResponseStatus) String ¶
func (x ResponseStatus) String() string
func (ResponseStatus) Type ¶
func (ResponseStatus) Type() protoreflect.EnumType
type StringList ¶
type StringList struct { Item []string `protobuf:"bytes,1,rep,name=item,proto3" json:"item,omitempty"` // contains filtered or unexported fields }
func (*StringList) Descriptor
deprecated
func (*StringList) Descriptor() ([]byte, []int)
Deprecated: Use StringList.ProtoReflect.Descriptor instead.
func (*StringList) GetItem ¶
func (x *StringList) GetItem() []string
func (*StringList) ProtoMessage ¶
func (*StringList) ProtoMessage()
func (*StringList) ProtoReflect ¶
func (x *StringList) ProtoReflect() protoreflect.Message
func (*StringList) Reset ¶
func (x *StringList) Reset()
func (*StringList) String ¶
func (x *StringList) String() string
type UnimplementedFileBrowserServiceServer ¶
type UnimplementedFileBrowserServiceServer struct { }
UnimplementedFileBrowserServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedFileBrowserServiceServer) DownloadFile ¶
func (UnimplementedFileBrowserServiceServer) DownloadFile(context.Context, *DownloadFileRequest) (*DownloadFileResponse, error)
func (UnimplementedFileBrowserServiceServer) ListFiles ¶
func (UnimplementedFileBrowserServiceServer) ListFiles(context.Context, *ListFilesRequest) (*ListFilesResponse, error)
func (UnimplementedFileBrowserServiceServer) Login ¶
func (UnimplementedFileBrowserServiceServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
func (UnimplementedFileBrowserServiceServer) UploadFile ¶
func (UnimplementedFileBrowserServiceServer) UploadFile(context.Context, *UploadFileRequest) (*UploadFileResponse, error)
type UnsafeFileBrowserServiceServer ¶
type UnsafeFileBrowserServiceServer interface {
// contains filtered or unexported methods
}
UnsafeFileBrowserServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FileBrowserServiceServer will result in compilation errors.
type UploadFileRequest ¶
type UploadFileRequest 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"` Chunk []byte `protobuf:"bytes,4,opt,name=chunk,proto3" json:"chunk,omitempty"` // contains filtered or unexported fields }
func (*UploadFileRequest) Descriptor
deprecated
func (*UploadFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use UploadFileRequest.ProtoReflect.Descriptor instead.
func (*UploadFileRequest) GetChunk ¶
func (x *UploadFileRequest) GetChunk() []byte
func (*UploadFileRequest) GetFilename ¶
func (x *UploadFileRequest) GetFilename() string
func (*UploadFileRequest) GetPath ¶
func (x *UploadFileRequest) GetPath() string
func (*UploadFileRequest) GetToken ¶
func (x *UploadFileRequest) GetToken() string
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 UploadFileResponse ¶
type UploadFileResponse struct { Status ResponseStatus `protobuf:"varint,1,opt,name=status,proto3,enum=proto.ResponseStatus" json:"status,omitempty"` Message *string `protobuf:"bytes,2,opt,name=message,proto3,oneof" json:"message,omitempty"` // contains filtered or unexported fields }
func (*UploadFileResponse) Descriptor
deprecated
func (*UploadFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use UploadFileResponse.ProtoReflect.Descriptor instead.
func (*UploadFileResponse) GetMessage ¶
func (x *UploadFileResponse) GetMessage() string
func (*UploadFileResponse) GetStatus ¶
func (x *UploadFileResponse) GetStatus() ResponseStatus
func (*UploadFileResponse) ProtoMessage ¶
func (*UploadFileResponse) ProtoMessage()
func (*UploadFileResponse) ProtoReflect ¶
func (x *UploadFileResponse) ProtoReflect() protoreflect.Message
func (*UploadFileResponse) Reset ¶
func (x *UploadFileResponse) Reset()
func (*UploadFileResponse) String ¶
func (x *UploadFileResponse) String() string