server

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 24, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContentType   = "Content-Type"
	Accept        = "Accept"
	CorrelationId = "correlationId"
	Error         = "error"

	// Url query parameter that identifies the exported function to execute
	Handler = "handler"

	AssumedContentType = MediaType("text/plain")

	ContentTypeNotSupported = errorCode("error-client-content-type-unsupported")
	AcceptNotSupported      = errorCode("error-client-accept-type-unsupported")
	ErrorWhileUnmarshalling = errorCode("error-client-unmarshall")
	ErrorWhileMarshalling   = errorCode("error-client-marshall")
	InvocationError         = errorCode("error-server-function-invocation")
)

Variables

View Source
var Trace *log.Logger // exported so the main package can redirect output

Functions

func NewInvoker added in v0.0.3

func NewInvoker(fnUri string) (*pluginInvoker, error)

Types

type Marshaller

type Marshaller interface {
	// contains filtered or unexported methods
}

Marshaller is used to convert a runtime instance of some type t to bytes

type MediaType

type MediaType string

type Unmarshaller

type Unmarshaller interface {
	// contains filtered or unexported methods
}

Unmarshaller is used to read bytes to a runtime go object, according to a given mediaType.

Jump to

Keyboard shortcuts

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