processor

package
v0.0.0-...-2be0f72 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Processor

type Processor interface {
	Process() error
}

fileProcess defines an interface for processing different types of files. Processing may include extracting data, conversion of the file to a different type, or whatever is deemed appropriate for the file type.

func New

func New(fileID string, mediatype schema.MediaType) Processor

newFileProcessor creates a new instance of a fileProcessor. It looks at the mime type for the file to determine what kind of processor it should use to handle this file. By default it returns a processor that does nothing to the file.

Jump to

Keyboard shortcuts

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