file

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 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 mahi.FileStorage

	UsageService       mahi.UsageService
	ApplicationService mahi.ApplicationService
	TransformService   mahi.TransformService

	FullFileDir string

	Log zerolog.Logger
}

func (*ServeService) Serve

type Service

type Service struct {
	FileStorage mahi.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) ([]*mahi.File, error)

func (*Service) Create

func (s *Service) Create(ctx context.Context, n *mahi.NewFile) (*mahi.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) (*mahi.File, error)

type TransformService

type TransformService struct {
	UsageService mahi.UsageService

	TransformStorage mahi.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