Documentation
¶
Overview ¶
Package file is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterFileServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterFileServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client FileServiceClient) error
- func RegisterFileServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterFileServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server FileServiceServer) error
- func RegisterFileServiceServer(s grpc.ServiceRegistrar, srv FileServiceServer)
- type CopyFileRequest
- func (*CopyFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CopyFileRequest) GetNames() []string
- func (x *CopyFileRequest) GetNewPath() string
- func (x *CopyFileRequest) GetPath() string
- func (*CopyFileRequest) ProtoMessage()
- func (x *CopyFileRequest) ProtoReflect() protoreflect.Message
- func (x *CopyFileRequest) Reset()
- func (x *CopyFileRequest) String() string
- type CopyFileResponse
- type CreateRepoRequest
- type CreateRepoResponse
- func (*CreateRepoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRepoResponse) GetResult() *Repo
- func (*CreateRepoResponse) ProtoMessage()
- func (x *CreateRepoResponse) ProtoReflect() protoreflect.Message
- func (x *CreateRepoResponse) Reset()
- func (x *CreateRepoResponse) String() string
- type DeleteRepoRequest
- type DeleteRepoResponse
- type DownloadFileRequest
- func (*DownloadFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DownloadFileRequest) GetPath() 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 (*DownloadFileResponse) ProtoMessage()
- func (x *DownloadFileResponse) ProtoReflect() protoreflect.Message
- func (x *DownloadFileResponse) Reset()
- func (x *DownloadFileResponse) String() string
- type File
- func (*File) Descriptor() ([]byte, []int)deprecated
- func (x *File) GetCreatedAt() *timestamppb.Timestamp
- func (x *File) GetHash() string
- func (x *File) GetId() int32
- func (x *File) GetName() string
- func (x *File) GetPath() string
- func (x *File) GetRepo() *Repo
- func (x *File) GetRepoId() int32
- func (x *File) GetSize() int64
- func (x *File) GetType() string
- func (x *File) GetUpdatedAt() *timestamppb.Timestamp
- func (*File) ProtoMessage()
- func (x *File) ProtoReflect() protoreflect.Message
- func (x *File) Reset()
- func (x *File) String() string
- type FileRequest
- func (*FileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FileRequest) GetChunk() []byte
- func (x *FileRequest) GetFilename() string
- func (x *FileRequest) GetIndex() int32
- func (x *FileRequest) GetPath() string
- func (x *FileRequest) GetSize() int64
- func (*FileRequest) ProtoMessage()
- func (x *FileRequest) ProtoReflect() protoreflect.Message
- func (x *FileRequest) Reset()
- func (x *FileRequest) String() string
- type FileResponse
- func (*FileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FileResponse) GetMessage() string
- func (x *FileResponse) GetResult() *File
- func (*FileResponse) ProtoMessage()
- func (x *FileResponse) ProtoReflect() protoreflect.Message
- func (x *FileResponse) Reset()
- func (x *FileResponse) String() string
- type FileServiceClient
- type FileServiceServer
- type FileService_DownloadClient
- type FileService_DownloadServer
- type FileService_PreviewClient
- type FileService_PreviewServer
- type FileService_UploadClient
- type FileService_UploadServer
- type ListFilesRequest
- func (*ListFilesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListFilesRequest) GetFilter() map[string]string
- func (*ListFilesRequest) ProtoMessage()
- func (x *ListFilesRequest) ProtoReflect() protoreflect.Message
- func (x *ListFilesRequest) Reset()
- func (x *ListFilesRequest) String() string
- type ListFilesResponse
- type ListReposRequest
- func (*ListReposRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListReposRequest) GetFilter() map[string]string
- func (*ListReposRequest) ProtoMessage()
- func (x *ListReposRequest) ProtoReflect() protoreflect.Message
- func (x *ListReposRequest) Reset()
- func (x *ListReposRequest) String() string
- type ListReposResponse
- type MkdirFileRequest
- func (*MkdirFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MkdirFileRequest) GetName() string
- func (x *MkdirFileRequest) GetPath() string
- func (*MkdirFileRequest) ProtoMessage()
- func (x *MkdirFileRequest) ProtoReflect() protoreflect.Message
- func (x *MkdirFileRequest) Reset()
- func (x *MkdirFileRequest) String() string
- type MkdirFileResponse
- type MoveFileRequest
- func (*MoveFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MoveFileRequest) GetNames() []string
- func (x *MoveFileRequest) GetNewPath() string
- func (x *MoveFileRequest) GetPath() string
- func (*MoveFileRequest) ProtoMessage()
- func (x *MoveFileRequest) ProtoReflect() protoreflect.Message
- func (x *MoveFileRequest) Reset()
- func (x *MoveFileRequest) String() string
- type MoveFileResponse
- type PreviewFileRequest
- func (*PreviewFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PreviewFileRequest) GetPath() string
- func (*PreviewFileRequest) ProtoMessage()
- func (x *PreviewFileRequest) ProtoReflect() protoreflect.Message
- func (x *PreviewFileRequest) Reset()
- func (x *PreviewFileRequest) String() string
- type PreviewFileResponse
- func (*PreviewFileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PreviewFileResponse) GetChunk() []byte
- func (*PreviewFileResponse) ProtoMessage()
- func (x *PreviewFileResponse) ProtoReflect() protoreflect.Message
- func (x *PreviewFileResponse) Reset()
- func (x *PreviewFileResponse) String() string
- type RemoveFileRequest
- func (*RemoveFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveFileRequest) GetNames() []string
- func (x *RemoveFileRequest) GetPath() string
- func (*RemoveFileRequest) ProtoMessage()
- func (x *RemoveFileRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveFileRequest) Reset()
- func (x *RemoveFileRequest) String() string
- type RemoveFileResponse
- type RenameFileRequest
- func (*RenameFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RenameFileRequest) GetName() string
- func (x *RenameFileRequest) GetNewName() string
- func (x *RenameFileRequest) GetPath() string
- func (*RenameFileRequest) ProtoMessage()
- func (x *RenameFileRequest) ProtoReflect() protoreflect.Message
- func (x *RenameFileRequest) Reset()
- func (x *RenameFileRequest) String() string
- type RenameFileResponse
- type Repo
- func (*Repo) Descriptor() ([]byte, []int)deprecated
- func (x *Repo) GetCreatedAt() *timestamppb.Timestamp
- func (x *Repo) GetDriver() string
- func (x *Repo) GetId() int32
- func (x *Repo) GetName() string
- func (x *Repo) GetOption() string
- func (x *Repo) GetPath() string
- func (x *Repo) GetStatus() bool
- func (x *Repo) GetUpdatedAt() *timestamppb.Timestamp
- func (*Repo) ProtoMessage()
- func (x *Repo) ProtoReflect() protoreflect.Message
- func (x *Repo) Reset()
- func (x *Repo) String() string
- type TestRepoRequest
- type TestRepoResponse
- type UnimplementedFileServiceServer
- func (UnimplementedFileServiceServer) Copy(context.Context, *CopyFileRequest) (*CopyFileResponse, error)
- func (UnimplementedFileServiceServer) CreateRepo(context.Context, *CreateRepoRequest) (*CreateRepoResponse, error)
- func (UnimplementedFileServiceServer) DeleteRepo(context.Context, *DeleteRepoRequest) (*DeleteRepoResponse, error)
- func (UnimplementedFileServiceServer) Download(*DownloadFileRequest, grpc.ServerStreamingServer[DownloadFileResponse]) error
- func (UnimplementedFileServiceServer) List(context.Context, *ListFilesRequest) (*ListFilesResponse, error)
- func (UnimplementedFileServiceServer) ListRepos(context.Context, *ListReposRequest) (*ListReposResponse, error)
- func (UnimplementedFileServiceServer) Mkdir(context.Context, *MkdirFileRequest) (*MkdirFileResponse, error)
- func (UnimplementedFileServiceServer) Move(context.Context, *MoveFileRequest) (*MoveFileResponse, error)
- func (UnimplementedFileServiceServer) Preview(*PreviewFileRequest, grpc.ServerStreamingServer[PreviewFileResponse]) error
- func (UnimplementedFileServiceServer) Remove(context.Context, *RemoveFileRequest) (*RemoveFileResponse, error)
- func (UnimplementedFileServiceServer) Rename(context.Context, *RenameFileRequest) (*RenameFileResponse, error)
- func (UnimplementedFileServiceServer) TestRepo(context.Context, *TestRepoRequest) (*TestRepoResponse, error)
- func (UnimplementedFileServiceServer) UpdateRepo(context.Context, *UpdateRepoRequest) (*UpdateRepoResponse, error)
- func (UnimplementedFileServiceServer) Upload(grpc.ClientStreamingServer[FileRequest, FileResponse]) error
- type UnsafeFileServiceServer
- type UpdateRepoRequest
- type UpdateRepoResponse
- func (*UpdateRepoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRepoResponse) GetResult() *Repo
- func (*UpdateRepoResponse) ProtoMessage()
- func (x *UpdateRepoResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateRepoResponse) Reset()
- func (x *UpdateRepoResponse) String() string
- type UploadFileRequest
Constants ¶
const ( FileService_List_FullMethodName = "/api.file.FileService/List" FileService_Move_FullMethodName = "/api.file.FileService/Move" FileService_Copy_FullMethodName = "/api.file.FileService/Copy" FileService_Mkdir_FullMethodName = "/api.file.FileService/Mkdir" FileService_Rename_FullMethodName = "/api.file.FileService/Rename" FileService_Remove_FullMethodName = "/api.file.FileService/Remove" FileService_Upload_FullMethodName = "/api.file.FileService/Upload" FileService_Download_FullMethodName = "/api.file.FileService/Download" FileService_Preview_FullMethodName = "/api.file.FileService/Preview" FileService_ListRepos_FullMethodName = "/api.file.FileService/ListRepos" FileService_CreateRepo_FullMethodName = "/api.file.FileService/CreateRepo" FileService_UpdateRepo_FullMethodName = "/api.file.FileService/UpdateRepo" FileService_DeleteRepo_FullMethodName = "/api.file.FileService/DeleteRepo" FileService_TestRepo_FullMethodName = "/api.file.FileService/TestRepo" )
Variables ¶
var FileService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.file.FileService", HandlerType: (*FileServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "List", Handler: _FileService_List_Handler, }, { MethodName: "Move", Handler: _FileService_Move_Handler, }, { MethodName: "Copy", Handler: _FileService_Copy_Handler, }, { MethodName: "Mkdir", Handler: _FileService_Mkdir_Handler, }, { MethodName: "Rename", Handler: _FileService_Rename_Handler, }, { MethodName: "Remove", Handler: _FileService_Remove_Handler, }, { MethodName: "ListRepos", Handler: _FileService_ListRepos_Handler, }, { MethodName: "CreateRepo", Handler: _FileService_CreateRepo_Handler, }, { MethodName: "UpdateRepo", Handler: _FileService_UpdateRepo_Handler, }, { MethodName: "DeleteRepo", Handler: _FileService_DeleteRepo_Handler, }, { MethodName: "TestRepo", Handler: _FileService_TestRepo_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "Upload", Handler: _FileService_Upload_Handler, ClientStreams: true, }, { StreamName: "Download", Handler: _FileService_Download_Handler, ServerStreams: true, }, { StreamName: "Preview", Handler: _FileService_Preview_Handler, ServerStreams: true, }, }, Metadata: "api/file/service.proto", }
FileService_ServiceDesc is the grpc.ServiceDesc for FileService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_api_file_file_proto protoreflect.FileDescriptor
var File_api_file_repo_proto protoreflect.FileDescriptor
var File_api_file_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterFileServiceHandler ¶
func RegisterFileServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterFileServiceHandler registers the http handlers for service FileService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterFileServiceHandlerClient ¶
func RegisterFileServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client FileServiceClient) error
RegisterFileServiceHandlerClient registers the http handlers for service FileService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "FileServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "FileServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "FileServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.
func RegisterFileServiceHandlerFromEndpoint ¶
func RegisterFileServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterFileServiceHandlerFromEndpoint is same as RegisterFileServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterFileServiceHandlerServer ¶
func RegisterFileServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server FileServiceServer) error
RegisterFileServiceHandlerServer registers the http handlers for service FileService to "mux". UnaryRPC :call FileServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterFileServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
func RegisterFileServiceServer ¶
func RegisterFileServiceServer(s grpc.ServiceRegistrar, srv FileServiceServer)
Types ¶
type CopyFileRequest ¶
type CopyFileRequest struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` NewPath string `protobuf:"bytes,2,opt,name=new_path,json=newPath,proto3" json:"new_path,omitempty"` Names []string `protobuf:"bytes,3,rep,name=names,proto3" json:"names,omitempty"` // contains filtered or unexported fields }
func (*CopyFileRequest) Descriptor
deprecated
func (*CopyFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use CopyFileRequest.ProtoReflect.Descriptor instead.
func (*CopyFileRequest) GetNames ¶
func (x *CopyFileRequest) GetNames() []string
func (*CopyFileRequest) GetNewPath ¶
func (x *CopyFileRequest) GetNewPath() string
func (*CopyFileRequest) GetPath ¶
func (x *CopyFileRequest) GetPath() string
func (*CopyFileRequest) ProtoMessage ¶
func (*CopyFileRequest) ProtoMessage()
func (*CopyFileRequest) ProtoReflect ¶
func (x *CopyFileRequest) ProtoReflect() protoreflect.Message
func (*CopyFileRequest) Reset ¶
func (x *CopyFileRequest) Reset()
func (*CopyFileRequest) String ¶
func (x *CopyFileRequest) String() string
type CopyFileResponse ¶
type CopyFileResponse struct {
// contains filtered or unexported fields
}
func (*CopyFileResponse) Descriptor
deprecated
func (*CopyFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use CopyFileResponse.ProtoReflect.Descriptor instead.
func (*CopyFileResponse) ProtoMessage ¶
func (*CopyFileResponse) ProtoMessage()
func (*CopyFileResponse) ProtoReflect ¶
func (x *CopyFileResponse) ProtoReflect() protoreflect.Message
func (*CopyFileResponse) Reset ¶
func (x *CopyFileResponse) Reset()
func (*CopyFileResponse) String ¶
func (x *CopyFileResponse) String() string
type CreateRepoRequest ¶
type CreateRepoRequest struct { Payload *Repo `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
func (*CreateRepoRequest) Descriptor
deprecated
func (*CreateRepoRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRepoRequest.ProtoReflect.Descriptor instead.
func (*CreateRepoRequest) GetPayload ¶
func (x *CreateRepoRequest) GetPayload() *Repo
func (*CreateRepoRequest) ProtoMessage ¶
func (*CreateRepoRequest) ProtoMessage()
func (*CreateRepoRequest) ProtoReflect ¶
func (x *CreateRepoRequest) ProtoReflect() protoreflect.Message
func (*CreateRepoRequest) Reset ¶
func (x *CreateRepoRequest) Reset()
func (*CreateRepoRequest) String ¶
func (x *CreateRepoRequest) String() string
type CreateRepoResponse ¶
type CreateRepoResponse struct { Result *Repo `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
func (*CreateRepoResponse) Descriptor
deprecated
func (*CreateRepoResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateRepoResponse.ProtoReflect.Descriptor instead.
func (*CreateRepoResponse) GetResult ¶
func (x *CreateRepoResponse) GetResult() *Repo
func (*CreateRepoResponse) ProtoMessage ¶
func (*CreateRepoResponse) ProtoMessage()
func (*CreateRepoResponse) ProtoReflect ¶
func (x *CreateRepoResponse) ProtoReflect() protoreflect.Message
func (*CreateRepoResponse) Reset ¶
func (x *CreateRepoResponse) Reset()
func (*CreateRepoResponse) String ¶
func (x *CreateRepoResponse) String() string
type DeleteRepoRequest ¶
type DeleteRepoRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteRepoRequest) Descriptor
deprecated
func (*DeleteRepoRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRepoRequest.ProtoReflect.Descriptor instead.
func (*DeleteRepoRequest) GetId ¶
func (x *DeleteRepoRequest) GetId() int32
func (*DeleteRepoRequest) ProtoMessage ¶
func (*DeleteRepoRequest) ProtoMessage()
func (*DeleteRepoRequest) ProtoReflect ¶
func (x *DeleteRepoRequest) ProtoReflect() protoreflect.Message
func (*DeleteRepoRequest) Reset ¶
func (x *DeleteRepoRequest) Reset()
func (*DeleteRepoRequest) String ¶
func (x *DeleteRepoRequest) String() string
type DeleteRepoResponse ¶
type DeleteRepoResponse struct {
// contains filtered or unexported fields
}
func (*DeleteRepoResponse) Descriptor
deprecated
func (*DeleteRepoResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRepoResponse.ProtoReflect.Descriptor instead.
func (*DeleteRepoResponse) ProtoMessage ¶
func (*DeleteRepoResponse) ProtoMessage()
func (*DeleteRepoResponse) ProtoReflect ¶
func (x *DeleteRepoResponse) ProtoReflect() protoreflect.Message
func (*DeleteRepoResponse) Reset ¶
func (x *DeleteRepoResponse) Reset()
func (*DeleteRepoResponse) String ¶
func (x *DeleteRepoResponse) String() string
type DownloadFileRequest ¶
type DownloadFileRequest struct { Path string `protobuf:"bytes,1,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) 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 { Chunk []byte `protobuf:"bytes,1,opt,name=chunk,proto3" json:"chunk,omitempty"` // 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) 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 File ¶
type File struct { // @gotags: gorm:"primary_key;auto_increment" Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primary_key;auto_increment"` // @gotags: gorm:"serializer:protobuf_timestamp;type:datetime" CreatedAt *timestamppb.Timestamp `` /* 139-byte string literal not displayed */ // @gotags: gorm:"serializer:protobuf_timestamp;type:datetime" UpdatedAt *timestamppb.Timestamp `` /* 139-byte string literal not displayed */ // @gotags: gorm:"not null;" Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty" gorm:"not null;"` Type string `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"` Size int64 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"` Hash string `protobuf:"bytes,7,opt,name=hash,proto3" json:"hash,omitempty"` // @gotags: gorm:"not null;" Path string `protobuf:"bytes,8,opt,name=path,proto3" json:"path,omitempty" gorm:"not null;"` Repo *Repo `protobuf:"bytes,10,opt,name=repo,proto3" json:"repo,omitempty"` // @gotags: gorm:"not null" RepoId int32 `protobuf:"varint,11,opt,name=repo_id,json=repoId,proto3" json:"repo_id,omitempty" gorm:"not null"` // contains filtered or unexported fields }
func (*File) Descriptor
deprecated
func (*File) GetCreatedAt ¶
func (x *File) GetCreatedAt() *timestamppb.Timestamp
func (*File) GetUpdatedAt ¶
func (x *File) GetUpdatedAt() *timestamppb.Timestamp
func (*File) ProtoMessage ¶
func (*File) ProtoMessage()
func (*File) ProtoReflect ¶
func (x *File) ProtoReflect() protoreflect.Message
type FileRequest ¶
type FileRequest struct { Index int32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` Size int64 `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"` Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` Filename string `protobuf:"bytes,4,opt,name=filename,proto3" json:"filename,omitempty"` Chunk []byte `protobuf:"bytes,2,opt,name=chunk,proto3" json:"chunk,omitempty"` // contains filtered or unexported fields }
func (*FileRequest) Descriptor
deprecated
func (*FileRequest) Descriptor() ([]byte, []int)
Deprecated: Use FileRequest.ProtoReflect.Descriptor instead.
func (*FileRequest) GetChunk ¶
func (x *FileRequest) GetChunk() []byte
func (*FileRequest) GetFilename ¶
func (x *FileRequest) GetFilename() string
func (*FileRequest) GetIndex ¶
func (x *FileRequest) GetIndex() int32
func (*FileRequest) GetPath ¶
func (x *FileRequest) GetPath() string
func (*FileRequest) GetSize ¶
func (x *FileRequest) GetSize() int64
func (*FileRequest) ProtoMessage ¶
func (*FileRequest) ProtoMessage()
func (*FileRequest) ProtoReflect ¶
func (x *FileRequest) ProtoReflect() protoreflect.Message
func (*FileRequest) Reset ¶
func (x *FileRequest) Reset()
func (*FileRequest) String ¶
func (x *FileRequest) String() string
type FileResponse ¶
type FileResponse struct { Result *File `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*FileResponse) Descriptor
deprecated
func (*FileResponse) Descriptor() ([]byte, []int)
Deprecated: Use FileResponse.ProtoReflect.Descriptor instead.
func (*FileResponse) GetMessage ¶
func (x *FileResponse) GetMessage() string
func (*FileResponse) GetResult ¶
func (x *FileResponse) GetResult() *File
func (*FileResponse) ProtoMessage ¶
func (*FileResponse) ProtoMessage()
func (*FileResponse) ProtoReflect ¶
func (x *FileResponse) ProtoReflect() protoreflect.Message
func (*FileResponse) Reset ¶
func (x *FileResponse) Reset()
func (*FileResponse) String ¶
func (x *FileResponse) String() string
type FileServiceClient ¶
type FileServiceClient interface { List(ctx context.Context, in *ListFilesRequest, opts ...grpc.CallOption) (*ListFilesResponse, error) Move(ctx context.Context, in *MoveFileRequest, opts ...grpc.CallOption) (*MoveFileResponse, error) Copy(ctx context.Context, in *CopyFileRequest, opts ...grpc.CallOption) (*CopyFileResponse, error) Mkdir(ctx context.Context, in *MkdirFileRequest, opts ...grpc.CallOption) (*MkdirFileResponse, error) Rename(ctx context.Context, in *RenameFileRequest, opts ...grpc.CallOption) (*RenameFileResponse, error) Remove(ctx context.Context, in *RemoveFileRequest, opts ...grpc.CallOption) (*RemoveFileResponse, error) Upload(ctx context.Context, opts ...grpc.CallOption) (grpc.ClientStreamingClient[FileRequest, FileResponse], error) Download(ctx context.Context, in *DownloadFileRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[DownloadFileResponse], error) Preview(ctx context.Context, in *PreviewFileRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[PreviewFileResponse], error) ListRepos(ctx context.Context, in *ListReposRequest, opts ...grpc.CallOption) (*ListReposResponse, error) CreateRepo(ctx context.Context, in *CreateRepoRequest, opts ...grpc.CallOption) (*CreateRepoResponse, error) UpdateRepo(ctx context.Context, in *UpdateRepoRequest, opts ...grpc.CallOption) (*UpdateRepoResponse, error) DeleteRepo(ctx context.Context, in *DeleteRepoRequest, opts ...grpc.CallOption) (*DeleteRepoResponse, error) TestRepo(ctx context.Context, in *TestRepoRequest, opts ...grpc.CallOption) (*TestRepoResponse, error) }
FileServiceClient is the client API for FileService 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 NewFileServiceClient ¶
func NewFileServiceClient(cc grpc.ClientConnInterface) FileServiceClient
type FileServiceServer ¶
type FileServiceServer interface { List(context.Context, *ListFilesRequest) (*ListFilesResponse, error) Move(context.Context, *MoveFileRequest) (*MoveFileResponse, error) Copy(context.Context, *CopyFileRequest) (*CopyFileResponse, error) Mkdir(context.Context, *MkdirFileRequest) (*MkdirFileResponse, error) Rename(context.Context, *RenameFileRequest) (*RenameFileResponse, error) Remove(context.Context, *RemoveFileRequest) (*RemoveFileResponse, error) Upload(grpc.ClientStreamingServer[FileRequest, FileResponse]) error Download(*DownloadFileRequest, grpc.ServerStreamingServer[DownloadFileResponse]) error Preview(*PreviewFileRequest, grpc.ServerStreamingServer[PreviewFileResponse]) error ListRepos(context.Context, *ListReposRequest) (*ListReposResponse, error) CreateRepo(context.Context, *CreateRepoRequest) (*CreateRepoResponse, error) UpdateRepo(context.Context, *UpdateRepoRequest) (*UpdateRepoResponse, error) DeleteRepo(context.Context, *DeleteRepoRequest) (*DeleteRepoResponse, error) TestRepo(context.Context, *TestRepoRequest) (*TestRepoResponse, error) // contains filtered or unexported methods }
FileServiceServer is the server API for FileService service. All implementations must embed UnimplementedFileServiceServer for forward compatibility.
type FileService_DownloadClient ¶
type FileService_DownloadClient = grpc.ServerStreamingClient[DownloadFileResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type FileService_DownloadServer ¶
type FileService_DownloadServer = grpc.ServerStreamingServer[DownloadFileResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type FileService_PreviewClient ¶
type FileService_PreviewClient = grpc.ServerStreamingClient[PreviewFileResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type FileService_PreviewServer ¶
type FileService_PreviewServer = grpc.ServerStreamingServer[PreviewFileResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type FileService_UploadClient ¶
type FileService_UploadClient = grpc.ClientStreamingClient[FileRequest, FileResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type FileService_UploadServer ¶
type FileService_UploadServer = grpc.ClientStreamingServer[FileRequest, FileResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type ListFilesRequest ¶
type ListFilesRequest struct { Filter map[string]string `` /* 139-byte string literal not displayed */ // 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() map[string]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 { Results []*File `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
func (*ListFilesResponse) Descriptor
deprecated
func (*ListFilesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListFilesResponse.ProtoReflect.Descriptor instead.
func (*ListFilesResponse) GetResults ¶
func (x *ListFilesResponse) GetResults() []*File
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 ListReposRequest ¶
type ListReposRequest struct { Filter map[string]string `` /* 139-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ListReposRequest) Descriptor
deprecated
func (*ListReposRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListReposRequest.ProtoReflect.Descriptor instead.
func (*ListReposRequest) GetFilter ¶
func (x *ListReposRequest) GetFilter() map[string]string
func (*ListReposRequest) ProtoMessage ¶
func (*ListReposRequest) ProtoMessage()
func (*ListReposRequest) ProtoReflect ¶
func (x *ListReposRequest) ProtoReflect() protoreflect.Message
func (*ListReposRequest) Reset ¶
func (x *ListReposRequest) Reset()
func (*ListReposRequest) String ¶
func (x *ListReposRequest) String() string
type ListReposResponse ¶
type ListReposResponse struct { Results []*Repo `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
func (*ListReposResponse) Descriptor
deprecated
func (*ListReposResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListReposResponse.ProtoReflect.Descriptor instead.
func (*ListReposResponse) GetResults ¶
func (x *ListReposResponse) GetResults() []*Repo
func (*ListReposResponse) ProtoMessage ¶
func (*ListReposResponse) ProtoMessage()
func (*ListReposResponse) ProtoReflect ¶
func (x *ListReposResponse) ProtoReflect() protoreflect.Message
func (*ListReposResponse) Reset ¶
func (x *ListReposResponse) Reset()
func (*ListReposResponse) String ¶
func (x *ListReposResponse) String() string
type MkdirFileRequest ¶
type MkdirFileRequest struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*MkdirFileRequest) Descriptor
deprecated
func (*MkdirFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use MkdirFileRequest.ProtoReflect.Descriptor instead.
func (*MkdirFileRequest) GetName ¶
func (x *MkdirFileRequest) GetName() string
func (*MkdirFileRequest) GetPath ¶
func (x *MkdirFileRequest) GetPath() string
func (*MkdirFileRequest) ProtoMessage ¶
func (*MkdirFileRequest) ProtoMessage()
func (*MkdirFileRequest) ProtoReflect ¶
func (x *MkdirFileRequest) ProtoReflect() protoreflect.Message
func (*MkdirFileRequest) Reset ¶
func (x *MkdirFileRequest) Reset()
func (*MkdirFileRequest) String ¶
func (x *MkdirFileRequest) String() string
type MkdirFileResponse ¶
type MkdirFileResponse struct {
// contains filtered or unexported fields
}
func (*MkdirFileResponse) Descriptor
deprecated
func (*MkdirFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use MkdirFileResponse.ProtoReflect.Descriptor instead.
func (*MkdirFileResponse) ProtoMessage ¶
func (*MkdirFileResponse) ProtoMessage()
func (*MkdirFileResponse) ProtoReflect ¶
func (x *MkdirFileResponse) ProtoReflect() protoreflect.Message
func (*MkdirFileResponse) Reset ¶
func (x *MkdirFileResponse) Reset()
func (*MkdirFileResponse) String ¶
func (x *MkdirFileResponse) String() string
type MoveFileRequest ¶
type MoveFileRequest struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` NewPath string `protobuf:"bytes,2,opt,name=new_path,json=newPath,proto3" json:"new_path,omitempty"` Names []string `protobuf:"bytes,3,rep,name=names,proto3" json:"names,omitempty"` // contains filtered or unexported fields }
func (*MoveFileRequest) Descriptor
deprecated
func (*MoveFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use MoveFileRequest.ProtoReflect.Descriptor instead.
func (*MoveFileRequest) GetNames ¶
func (x *MoveFileRequest) GetNames() []string
func (*MoveFileRequest) GetNewPath ¶
func (x *MoveFileRequest) GetNewPath() string
func (*MoveFileRequest) GetPath ¶
func (x *MoveFileRequest) GetPath() string
func (*MoveFileRequest) ProtoMessage ¶
func (*MoveFileRequest) ProtoMessage()
func (*MoveFileRequest) ProtoReflect ¶
func (x *MoveFileRequest) ProtoReflect() protoreflect.Message
func (*MoveFileRequest) Reset ¶
func (x *MoveFileRequest) Reset()
func (*MoveFileRequest) String ¶
func (x *MoveFileRequest) String() string
type MoveFileResponse ¶
type MoveFileResponse struct {
// contains filtered or unexported fields
}
func (*MoveFileResponse) Descriptor
deprecated
func (*MoveFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use MoveFileResponse.ProtoReflect.Descriptor instead.
func (*MoveFileResponse) ProtoMessage ¶
func (*MoveFileResponse) ProtoMessage()
func (*MoveFileResponse) ProtoReflect ¶
func (x *MoveFileResponse) ProtoReflect() protoreflect.Message
func (*MoveFileResponse) Reset ¶
func (x *MoveFileResponse) Reset()
func (*MoveFileResponse) String ¶
func (x *MoveFileResponse) String() string
type PreviewFileRequest ¶
type PreviewFileRequest struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
func (*PreviewFileRequest) Descriptor
deprecated
func (*PreviewFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use PreviewFileRequest.ProtoReflect.Descriptor instead.
func (*PreviewFileRequest) GetPath ¶
func (x *PreviewFileRequest) GetPath() string
func (*PreviewFileRequest) ProtoMessage ¶
func (*PreviewFileRequest) ProtoMessage()
func (*PreviewFileRequest) ProtoReflect ¶
func (x *PreviewFileRequest) ProtoReflect() protoreflect.Message
func (*PreviewFileRequest) Reset ¶
func (x *PreviewFileRequest) Reset()
func (*PreviewFileRequest) String ¶
func (x *PreviewFileRequest) String() string
type PreviewFileResponse ¶
type PreviewFileResponse struct { Chunk []byte `protobuf:"bytes,1,opt,name=chunk,proto3" json:"chunk,omitempty"` // contains filtered or unexported fields }
func (*PreviewFileResponse) Descriptor
deprecated
func (*PreviewFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use PreviewFileResponse.ProtoReflect.Descriptor instead.
func (*PreviewFileResponse) GetChunk ¶
func (x *PreviewFileResponse) GetChunk() []byte
func (*PreviewFileResponse) ProtoMessage ¶
func (*PreviewFileResponse) ProtoMessage()
func (*PreviewFileResponse) ProtoReflect ¶
func (x *PreviewFileResponse) ProtoReflect() protoreflect.Message
func (*PreviewFileResponse) Reset ¶
func (x *PreviewFileResponse) Reset()
func (*PreviewFileResponse) String ¶
func (x *PreviewFileResponse) String() string
type RemoveFileRequest ¶
type RemoveFileRequest struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` Names []string `protobuf:"bytes,3,rep,name=names,proto3" json:"names,omitempty"` // contains filtered or unexported fields }
func (*RemoveFileRequest) Descriptor
deprecated
func (*RemoveFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveFileRequest.ProtoReflect.Descriptor instead.
func (*RemoveFileRequest) GetNames ¶
func (x *RemoveFileRequest) GetNames() []string
func (*RemoveFileRequest) GetPath ¶
func (x *RemoveFileRequest) GetPath() string
func (*RemoveFileRequest) ProtoMessage ¶
func (*RemoveFileRequest) ProtoMessage()
func (*RemoveFileRequest) ProtoReflect ¶
func (x *RemoveFileRequest) ProtoReflect() protoreflect.Message
func (*RemoveFileRequest) Reset ¶
func (x *RemoveFileRequest) Reset()
func (*RemoveFileRequest) String ¶
func (x *RemoveFileRequest) String() string
type RemoveFileResponse ¶
type RemoveFileResponse struct {
// contains filtered or unexported fields
}
func (*RemoveFileResponse) Descriptor
deprecated
func (*RemoveFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use RemoveFileResponse.ProtoReflect.Descriptor instead.
func (*RemoveFileResponse) ProtoMessage ¶
func (*RemoveFileResponse) ProtoMessage()
func (*RemoveFileResponse) ProtoReflect ¶
func (x *RemoveFileResponse) ProtoReflect() protoreflect.Message
func (*RemoveFileResponse) Reset ¶
func (x *RemoveFileResponse) Reset()
func (*RemoveFileResponse) String ¶
func (x *RemoveFileResponse) String() string
type RenameFileRequest ¶
type RenameFileRequest struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` NewName string `protobuf:"bytes,3,opt,name=new_name,json=newName,proto3" json:"new_name,omitempty"` // contains filtered or unexported fields }
func (*RenameFileRequest) Descriptor
deprecated
func (*RenameFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use RenameFileRequest.ProtoReflect.Descriptor instead.
func (*RenameFileRequest) GetName ¶
func (x *RenameFileRequest) GetName() string
func (*RenameFileRequest) GetNewName ¶
func (x *RenameFileRequest) GetNewName() string
func (*RenameFileRequest) GetPath ¶
func (x *RenameFileRequest) GetPath() string
func (*RenameFileRequest) ProtoMessage ¶
func (*RenameFileRequest) ProtoMessage()
func (*RenameFileRequest) ProtoReflect ¶
func (x *RenameFileRequest) ProtoReflect() protoreflect.Message
func (*RenameFileRequest) Reset ¶
func (x *RenameFileRequest) Reset()
func (*RenameFileRequest) String ¶
func (x *RenameFileRequest) String() string
type RenameFileResponse ¶
type RenameFileResponse struct {
// contains filtered or unexported fields
}
func (*RenameFileResponse) Descriptor
deprecated
func (*RenameFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use RenameFileResponse.ProtoReflect.Descriptor instead.
func (*RenameFileResponse) ProtoMessage ¶
func (*RenameFileResponse) ProtoMessage()
func (*RenameFileResponse) ProtoReflect ¶
func (x *RenameFileResponse) ProtoReflect() protoreflect.Message
func (*RenameFileResponse) Reset ¶
func (x *RenameFileResponse) Reset()
func (*RenameFileResponse) String ¶
func (x *RenameFileResponse) String() string
type Repo ¶
type Repo struct { // @gotags: gorm:"primary_key;auto_increment" Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primary_key;auto_increment"` // @gotags: gorm:"serializer:protobuf_timestamp;type:datetime" CreatedAt *timestamppb.Timestamp `` /* 139-byte string literal not displayed */ // @gotags: gorm:"serializer:protobuf_timestamp;type:datetime" UpdatedAt *timestamppb.Timestamp `` /* 139-byte string literal not displayed */ // @gotags: gorm:"not null;unique" Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty" gorm:"not null;unique"` Path string `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"` Status bool `protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"` Driver string `protobuf:"bytes,7,opt,name=driver,proto3" json:"driver,omitempty"` Option string `protobuf:"bytes,8,opt,name=option,proto3" json:"option,omitempty"` // contains filtered or unexported fields }
func (*Repo) Descriptor
deprecated
func (*Repo) GetCreatedAt ¶
func (x *Repo) GetCreatedAt() *timestamppb.Timestamp
func (*Repo) GetUpdatedAt ¶
func (x *Repo) GetUpdatedAt() *timestamppb.Timestamp
func (*Repo) ProtoMessage ¶
func (*Repo) ProtoMessage()
func (*Repo) ProtoReflect ¶
func (x *Repo) ProtoReflect() protoreflect.Message
type TestRepoRequest ¶
type TestRepoRequest struct { Payload *Repo `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
func (*TestRepoRequest) Descriptor
deprecated
func (*TestRepoRequest) Descriptor() ([]byte, []int)
Deprecated: Use TestRepoRequest.ProtoReflect.Descriptor instead.
func (*TestRepoRequest) GetPayload ¶
func (x *TestRepoRequest) GetPayload() *Repo
func (*TestRepoRequest) ProtoMessage ¶
func (*TestRepoRequest) ProtoMessage()
func (*TestRepoRequest) ProtoReflect ¶
func (x *TestRepoRequest) ProtoReflect() protoreflect.Message
func (*TestRepoRequest) Reset ¶
func (x *TestRepoRequest) Reset()
func (*TestRepoRequest) String ¶
func (x *TestRepoRequest) String() string
type TestRepoResponse ¶
type TestRepoResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // contains filtered or unexported fields }
func (*TestRepoResponse) Descriptor
deprecated
func (*TestRepoResponse) Descriptor() ([]byte, []int)
Deprecated: Use TestRepoResponse.ProtoReflect.Descriptor instead.
func (*TestRepoResponse) GetSuccess ¶
func (x *TestRepoResponse) GetSuccess() bool
func (*TestRepoResponse) ProtoMessage ¶
func (*TestRepoResponse) ProtoMessage()
func (*TestRepoResponse) ProtoReflect ¶
func (x *TestRepoResponse) ProtoReflect() protoreflect.Message
func (*TestRepoResponse) Reset ¶
func (x *TestRepoResponse) Reset()
func (*TestRepoResponse) String ¶
func (x *TestRepoResponse) String() string
type UnimplementedFileServiceServer ¶
type UnimplementedFileServiceServer struct{}
UnimplementedFileServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedFileServiceServer) Copy ¶
func (UnimplementedFileServiceServer) Copy(context.Context, *CopyFileRequest) (*CopyFileResponse, error)
func (UnimplementedFileServiceServer) CreateRepo ¶
func (UnimplementedFileServiceServer) CreateRepo(context.Context, *CreateRepoRequest) (*CreateRepoResponse, error)
func (UnimplementedFileServiceServer) DeleteRepo ¶
func (UnimplementedFileServiceServer) DeleteRepo(context.Context, *DeleteRepoRequest) (*DeleteRepoResponse, error)
func (UnimplementedFileServiceServer) Download ¶
func (UnimplementedFileServiceServer) Download(*DownloadFileRequest, grpc.ServerStreamingServer[DownloadFileResponse]) error
func (UnimplementedFileServiceServer) List ¶
func (UnimplementedFileServiceServer) List(context.Context, *ListFilesRequest) (*ListFilesResponse, error)
func (UnimplementedFileServiceServer) ListRepos ¶
func (UnimplementedFileServiceServer) ListRepos(context.Context, *ListReposRequest) (*ListReposResponse, error)
func (UnimplementedFileServiceServer) Mkdir ¶
func (UnimplementedFileServiceServer) Mkdir(context.Context, *MkdirFileRequest) (*MkdirFileResponse, error)
func (UnimplementedFileServiceServer) Move ¶
func (UnimplementedFileServiceServer) Move(context.Context, *MoveFileRequest) (*MoveFileResponse, error)
func (UnimplementedFileServiceServer) Remove ¶
func (UnimplementedFileServiceServer) Remove(context.Context, *RemoveFileRequest) (*RemoveFileResponse, error)
func (UnimplementedFileServiceServer) Rename ¶
func (UnimplementedFileServiceServer) Rename(context.Context, *RenameFileRequest) (*RenameFileResponse, error)
func (UnimplementedFileServiceServer) TestRepo ¶
func (UnimplementedFileServiceServer) TestRepo(context.Context, *TestRepoRequest) (*TestRepoResponse, error)
func (UnimplementedFileServiceServer) UpdateRepo ¶
func (UnimplementedFileServiceServer) UpdateRepo(context.Context, *UpdateRepoRequest) (*UpdateRepoResponse, error)
func (UnimplementedFileServiceServer) Upload ¶
func (UnimplementedFileServiceServer) Upload(grpc.ClientStreamingServer[FileRequest, FileResponse]) error
type UnsafeFileServiceServer ¶
type UnsafeFileServiceServer interface {
// contains filtered or unexported methods
}
UnsafeFileServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FileServiceServer will result in compilation errors.
type UpdateRepoRequest ¶
type UpdateRepoRequest struct { Payload *Repo `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
func (*UpdateRepoRequest) Descriptor
deprecated
func (*UpdateRepoRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRepoRequest.ProtoReflect.Descriptor instead.
func (*UpdateRepoRequest) GetPayload ¶
func (x *UpdateRepoRequest) GetPayload() *Repo
func (*UpdateRepoRequest) ProtoMessage ¶
func (*UpdateRepoRequest) ProtoMessage()
func (*UpdateRepoRequest) ProtoReflect ¶
func (x *UpdateRepoRequest) ProtoReflect() protoreflect.Message
func (*UpdateRepoRequest) Reset ¶
func (x *UpdateRepoRequest) Reset()
func (*UpdateRepoRequest) String ¶
func (x *UpdateRepoRequest) String() string
type UpdateRepoResponse ¶
type UpdateRepoResponse struct { Result *Repo `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
func (*UpdateRepoResponse) Descriptor
deprecated
func (*UpdateRepoResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRepoResponse.ProtoReflect.Descriptor instead.
func (*UpdateRepoResponse) GetResult ¶
func (x *UpdateRepoResponse) GetResult() *Repo
func (*UpdateRepoResponse) ProtoMessage ¶
func (*UpdateRepoResponse) ProtoMessage()
func (*UpdateRepoResponse) ProtoReflect ¶
func (x *UpdateRepoResponse) ProtoReflect() protoreflect.Message
func (*UpdateRepoResponse) Reset ¶
func (x *UpdateRepoResponse) Reset()
func (*UpdateRepoResponse) String ¶
func (x *UpdateRepoResponse) String() string
type UploadFileRequest ¶
type UploadFileRequest struct {
// contains filtered or unexported fields
}
func (*UploadFileRequest) Descriptor
deprecated
func (*UploadFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use UploadFileRequest.ProtoReflect.Descriptor instead.
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