file

package
v0.0.0-...-6421233 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 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 gisvs.FileStorage

	UsageService       gisvs.UsageService
	ApplicationService gisvs.ApplicationService
	TransformService   gisvs.TransformService

	FullFileDir string

	Log zerolog.Logger
}

func (*ServeService) Serve

type Service

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

func (*Service) Create

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

type TransformService

type TransformService struct {
	UsageService gisvs.UsageService

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