Documentation ¶
Index ¶
- type FileServer
- func (s FileServer) DownloadFile(req *pb.DownloadFileRequest, stream pb.FileService_DownloadFileServer) error
- func (s FileServer) ListFiles(ctx context.Context, req *pb.ListFilesRequest) (*pb.ListFilesResponse, error)
- func (s FileServer) RegisterUser(ctx context.Context, req *pb.RegisterUserRequest) (*pb.RegisterUserResponse, error)
- func (s FileServer) RemoveFile(ctx context.Context, req *pb.RemoveFileRequest) (*pb.RemoveFileResponse, error)
- func (s FileServer) UploadFile(stream pb.FileService_UploadFileServer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileServer ¶
type FileServer struct { pb.UnimplementedFileServiceServer controller.FileServerController }
func New ¶
func New(controller controller.FileServerController) FileServer
func (FileServer) DownloadFile ¶
func (s FileServer) DownloadFile(req *pb.DownloadFileRequest, stream pb.FileService_DownloadFileServer) error
func (FileServer) ListFiles ¶
func (s FileServer) ListFiles(ctx context.Context, req *pb.ListFilesRequest) (*pb.ListFilesResponse, error)
func (FileServer) RegisterUser ¶
func (s FileServer) RegisterUser(ctx context.Context, req *pb.RegisterUserRequest) (*pb.RegisterUserResponse, error)
func (FileServer) RemoveFile ¶
func (s FileServer) RemoveFile(ctx context.Context, req *pb.RemoveFileRequest) (*pb.RemoveFileResponse, error)
func (FileServer) UploadFile ¶
func (s FileServer) UploadFile(stream pb.FileService_UploadFileServer) error
Click to show internal directories.
Click to hide internal directories.