handlers

package
v0.0.0-...-ee5a8af Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppError

type AppError struct {
	Error   error
	Message string
	Code    int
}

func GdalDemHandler

func GdalDemHandler(w http.ResponseWriter, r *http.Request) *AppError

GdalDemHandler handles PDAL jobs.

type FunctionFunc

type FunctionFunc func(InputMsg) ([]byte, error)

FunctionFunc defines the signature of our function creator.

func MakeFunction

func MakeFunction(fn func(string, string, *json.RawMessage) ([]byte, error)) FunctionFunc

MakeFunction wraps the individual PDAL functions. Parse the input and output filenames, creating files as needed. Download the input data and upload the output data.

type InputMsg

type InputMsg struct {
	Source      s3.Bucket        `json:"source,omitempty"`
	Function    *string          `json:"function,omitempty"`
	Options     *json.RawMessage `json:"options,omitempty"`
	Destination s3.Bucket        `json:"destination,omitempty"`
}

InputMsg defines the expected input JSON structure. We currently support S3 input (bucket/key), though provider-specific (e.g., GRiD) may be legitimate.

Jump to

Keyboard shortcuts

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