file

package
v0.0.0-...-bd0efcb Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServeService

type ServeService struct {
	FileStorage baas.FileStorage

	UsageService       baas.UsageService
	ApplicationService baas.ApplicationService

	FullFileDir string

	Log zerolog.Logger
}

func (*ServeService) Serve

type Service

type Service struct {
	FileStorage baas.FileStorage
}

Service is the implementation of the file service interface. It will handle the apps business logic concerning files.

func (*Service) ApplicationFiles

func (s *Service) ApplicationFiles(ctx context.Context, applicationID, sinceID string, limit int) ([]*baas.File, error)

func (*Service) Create

func (s *Service) Create(ctx context.Context, n *baas.NewFile) (*baas.File, error)

func (*Service) Delete

func (s *Service) Delete(ctx context.Context, id string) error

func (*Service) File

func (s *Service) File(ctx context.Context, id string) (*baas.File, error)

type TransformService

type TransformService struct {
	UsageService baas.UsageService

	TransformStorage baas.TransformStorage

	MaxTransformFileSize int64

	Log zerolog.Logger
}

func (*TransformService) Transform

Jump to

Keyboard shortcuts

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