Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ExtractHandler ¶
type ExtractHandler struct {
// contains filtered or unexported fields
}
func NewExtractHandler ¶
func NewExtractHandler(maxWorkers int, processTimeout time.Duration) *ExtractHandler
func (*ExtractHandler) ServeHTTP ¶
func (h *ExtractHandler) ServeHTTP(w http.ResponseWriter, rq *http.Request)
type Response ¶
type Response struct { Data []ResultSuccess `json:"data,omitempty"` Errors []ResultError `json:"errors,omitempty"` }
type ResultError ¶
type ResultError struct { FilePath string `json:"filePath,omitempty"` Message string `json:"message,omitempty"` }
ResultError stores error data
type ResultSuccess ¶
type ResultSuccess struct { FilePath string `json:"filePath,omitempty"` Metadata map[string]interface{} `json:"metadata,omitempty"` }
ResultSuccess stores success data
Click to show internal directories.
Click to hide internal directories.