Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDocumentNameFromFilename ¶
GetDocumentNameFromFilename strips path and extension.
Types ¶
type Handler ¶
Handler contains the runtime information such as logging and database.
func (*Handler) UploadConvert ¶
func (h *Handler) UploadConvert(w http.ResponseWriter, r *http.Request)
UploadConvert is an endpoint to both upload and convert a document
type StorageProvider ¶
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
Click to show internal directories.
Click to hide internal directories.