service

package
v0.0.0-...-14e102d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2025 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	pb.UnimplementedFileServiceServer
	// contains filtered or unexported fields
}

func New

func New(app *app.App) *Service

func (*Service) Copy

func (srv *Service) Copy(ctx context.Context, req *pb.CopyFileRequest) (*pb.CopyFileResponse, error)

func (*Service) CreateRepo

func (srv *Service) CreateRepo(ctx context.Context, req *pb.CreateRepoRequest) (*pb.CreateRepoResponse, error)

func (*Service) DeleteRepo

func (srv *Service) DeleteRepo(ctx context.Context, req *pb.DeleteRepoRequest) (*pb.DeleteRepoResponse, error)

func (*Service) Download

func (srv *Service) Download(req *pb.DownloadFileRequest, stream pb.FileService_DownloadServer) error

func (*Service) List

func (*Service) ListRepos

func (srv *Service) ListRepos(ctx context.Context, req *pb.ListReposRequest) (*pb.ListReposResponse, error)

func (*Service) Mkdir

func (srv *Service) Mkdir(ctx context.Context, req *pb.MkdirFileRequest) (*pb.MkdirFileResponse, error)

func (*Service) Move

func (srv *Service) Move(ctx context.Context, req *pb.MoveFileRequest) (*pb.MoveFileResponse, error)

func (*Service) Preview

func (srv *Service) Preview(req *pb.PreviewFileRequest, stream pb.FileService_PreviewServer) error

func (*Service) Register

func (srv *Service) Register(grpc *grpc.Server)

func (*Service) RegisterGateway

func (srv *Service) RegisterGateway(ctx context.Context, mux *runtime.ServeMux, e *echo.Echo)

func (*Service) Remove

func (*Service) Rename

func (*Service) TestRepo

func (srv *Service) TestRepo(ctx context.Context, req *pb.TestRepoRequest) (*pb.TestRepoResponse, error)

func (*Service) UpdateRepo

func (srv *Service) UpdateRepo(ctx context.Context, req *pb.UpdateRepoRequest) (*pb.UpdateRepoResponse, error)

func (*Service) Upload

func (srv *Service) Upload(stream pb.FileService_UploadServer) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL