serverless

package
v3.65.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: MIT Imports: 16 Imported by: 3 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package serverless contains shared components for serverless distributions of Benthos.

Index

Constants

View Source
const ServerlessResponseType = "serverless_response"

ServerlessResponseType is an output type that redirects pipeline outputs back to the handler.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler contains a live Benthos pipeline and wraps it within an invoke handler.

func NewHandler

func NewHandler(conf config.Type) (*Handler, error)

NewHandler returns a Handler by creating a Benthos pipeline.

func (*Handler) Close

func (h *Handler) Close(tout time.Duration) error

Close shuts down the underlying pipeline. If the shut down takes longer than the specified timeout it is aborted and an error is returned.

func (*Handler) Handle

func (h *Handler) Handle(ctx context.Context, obj interface{}) (interface{}, error)

Handle is a request/response func that injects a payload into the underlying Benthos pipeline and returns a result.

Directories

Path Synopsis
Package lambda contains the execution logic for running Benthos as an AWS lambda function.
Package lambda contains the execution logic for running Benthos as an AWS lambda function.

Jump to

Keyboard shortcuts

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