service

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFileNotInUploadState = errors.New("the file is not in upload state")
)

Functions

This section is empty.

Types

type FileNodeService

type FileNodeService struct {
	Logger log.GoDropLogger
	Repos  *provider.Repositories
}

func (FileNodeService) CreateFileNode

func (n FileNodeService) CreateFileNode(ctx context.Context, newFileNode model.CreateFileNode) (model.FileNode, error)

func (FileNodeService) DeleteFileNode added in v0.1.5

func (n FileNodeService) DeleteFileNode(ctx context.Context, id model.ID) (model.ID, error)

func (FileNodeService) GetFileNodeByPath

func (n FileNodeService) GetFileNodeByPath(ctx context.Context, path string) (model.FileNode, error)

type FileService

type FileService struct {
	Logger log.GoDropLogger
	Repos  *provider.Repositories
}

func (FileService) Download

func (f FileService) Download(ctx context.Context, id string, writer io.Writer) error

func (FileService) Upload

func (f FileService) Upload(ctx context.Context, id string, reader io.Reader) error

Jump to

Keyboard shortcuts

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