cloudplatform

package
v0.0.0-...-de1ab33 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2019 License: BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Overview

The cloudplatform package abstracts over the functionality provided by a cloud platform, e.g., AWS.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvT

type EnvT map[string]string // Environment variables passed to lambdas.

type Handler

type Handler interface {
	Name() string
	TimeoutSecs() int
	Invoke(payload []byte) ([]byte, error)

	// Finalize cleans up allocated resources.  Any error encountered during cleanup is logged but ignored.
	Finalize()
}

type HandlerCrashedError

type HandlerCrashedError struct {
	Handler Handler
	Message string
}

func (*HandlerCrashedError) Error

func (e *HandlerCrashedError) Error() string

type HandlerTimeoutError

type HandlerTimeoutError struct {
	Handler Handler
}

func (*HandlerTimeoutError) Error

func (e *HandlerTimeoutError) Error() string

Directories

Path Synopsis
The local package exposes a local, simulated serverless platform.
The local package exposes a local, simulated serverless platform.

Jump to

Keyboard shortcuts

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