service

package
v0.0.0-...-d480475 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: AGPL-3.0-or-later Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	FilePath string

	OutputFile *os.File
	// contains filtered or unexported fields
}

func NewFile

func NewFile() *File

func (*File) Close

func (f *File) Close() error

func (*File) SetFile

func (f *File) SetFile(fileName, path string) error

func (*File) Write

func (f *File) Write(chunk []byte) error

type FileServiceServer

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

Execution context of the service

func New

Init the service execution context

func (*FileServiceServer) BucketFileHashes

Handle the request for retrieving the file hashes of a given storage bucket

func (*FileServiceServer) Download

Handle a request for a file download

func (*FileServiceServer) Upload

Handler of file upload requests Manages large files upload by supporting the streaming of data chunks

Jump to

Keyboard shortcuts

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