store

package
v2.0.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2019 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package store provides the implementation for a file system based storage provider. This enables all document upload previews to be processed AND stored locally.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalStorageProvider

type LocalStorageProvider struct {
}

LocalStorageProvider provides an implementation of StorageProvider.

func (*LocalStorageProvider) Convert

func (store *LocalStorageProvider) Convert(params api.ConversionJobRequest) (filename string, fileResult *api.DocumentConversionResponse, err error)

Convert a file from its native format into Documize internal format.

func (*LocalStorageProvider) Upload

func (store *LocalStorageProvider) Upload(job string, filename string, file []byte) (err error)

Upload a flie and store it locally.

Jump to

Keyboard shortcuts

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