Documentation
¶
Index ¶
- Variables
- func GenerateUserFolders(path string, folders ...string) error
- type DataServer
- func (s *DataServer) CreateConnection(ctx context.Context, info *pb.DataInfo) (*pb.Connection, error)
- func (s *DataServer) GetData(ctx context.Context, get_chunk *pb.GetChunk) (*pb.FilePart, error)
- func (s *DataServer) GetSum(ctx context.Context, get_chunk *pb.GetChunk) (*pb.SHASum, error)
- func (s *DataServer) SaveData(ctx context.Context, save_chunk *pb.SaveChunk) (*emptypb.Empty, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // File find ErrBadUUID error = errors.New("bad file uuid") ErrUnexpectedFileChange error = errors.New("unexpected file change") // Chunks ErrIncorrectChunkSize error = errors.New("incorrect chunk size") // CreateConnection errors ErrEmptyFilename error = errors.New("file name is empty") ErrUnexpectedFileType error = errors.New("unexpected file type") ErrNotEnoughDiskSpace error = errors.New("not enough disk space") // GetData errors ErrFileNotExist error = errors.New("file not exist") ErrInternal error = errors.New("internal error") )
Functions ¶
func GenerateUserFolders ¶
Types ¶
type DataServer ¶
type DataServer struct {
pb.DataServiceServer
// contains filtered or unexported fields
}
func NewDataServer ¶
func NewDataServer(ctx context.Context, cfg dataconfig.DataServiceConfig) *DataServer
func (*DataServer) CreateConnection ¶
func (s *DataServer) CreateConnection(ctx context.Context, info *pb.DataInfo) (*pb.Connection, error)
Click to show internal directories.
Click to hide internal directories.