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
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 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.
Click to show internal directories.
Click to hide internal directories.