local

package
v0.0.0-...-8b94866 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: Unlicense Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const ServiceName = "local"

Variables

This section is empty.

Functions

func NewService

func NewService(config mediastore.ServiceConfig) (mediastore.Service, error)

Types

type Config

type Config struct {
	DirectoryPath string `env:"FOLDER_PATH" yaml:"folder_path" json:"folder_path"`
}

func ConfigSkeleton

func ConfigSkeleton() Config

type Service

type Service struct {
	// contains filtered or unexported fields
}

func (*Service) GetObject

func (s *Service) GetObject(sourceKey string) (stream *bytes.Buffer, err error)

func (*Service) GetPublicObject

func (s *Service) GetPublicObject(sourceKey string) (targetURL string, err error)

func (*Service) PutObject

func (s *Service) PutObject(objectKey string, contentSource io.Reader) (uploadInfo *mediastore.UploadInfo, err error)

type UploadOutput

type UploadOutput struct {
	Directory string
	Key       string
	Output    *bytes.Buffer
	Size      int
}

Jump to

Keyboard shortcuts

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