community: Index | Files | Directories

package conversion

import ""


Package Files

conversion.go endpoint.go model.go

func GetDocumentNameFromFilename Uses

func GetDocumentNameFromFilename(filename string) (dn string)

GetDocumentNameFromFilename strips path and extension.

type Handler Uses

type Handler struct {
    Runtime *env.Runtime
    Store   *store.Store
    Indexer indexer.Indexer

Handler contains the runtime information such as logging and database.

func (*Handler) UploadConvert Uses

func (h *Handler) UploadConvert(w http.ResponseWriter, r *http.Request)

UploadConvert is an endpoint to both upload and convert a document

type StorageProvider Uses

type StorageProvider interface {
    Upload(job string, filename string, file []byte) (err error)
    Convert(api.ConversionJobRequest) (filename string, fileResult *api.DocumentConversionResponse, err error)

StorageProvider imports and stores documents


storePackage store provides the implementation for a file system based storage provider.

Package conversion imports 28 packages (graph) and is imported by 2 packages. Updated 2019-11-20. Refresh now. Tools for package owners.