Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API contains all references needed to convert a processing request
func NewAPI ¶
func NewAPI(opts *APIOptions, readerFactory *readers.URLReaderFactory, converter abstractions.Converter) *API
NewAPI instantiates a new HTTP handler for converting images
type APIOptions ¶
APIOptions enables customization for how the HTTP server is started
func NewAPIOptions ¶
func NewAPIOptions(endpoint string) *APIOptions
NewAPIOptions instantiates a new options container with default values
type ProcessingRequest ¶
type ProcessingRequest struct { Source *url.URL OutputSpec *abstractions.OutputSpec }
ProcessingRequest contains all necessary information to process an image for resizing, cropping, etc
func NewProcessingRequest ¶
func NewProcessingRequest(r *http.Request) (*ProcessingRequest, error)
NewProcessingRequest translates a GET request to a `processingRequest`
Click to show internal directories.
Click to hide internal directories.