helioslambda

package module
v1.34.8 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InstrumentedSymbols = [...]string{"Start", "StartWithContext", "StartWithOptions"}

Functions

func HandleRecord added in v1.34.2

func HandleRecord(ctx context.Context, record events.SQSMessage, handleRecordHelper func(ctx context.Context, message events.SQSMessage) (any, error)) (any, error)

func Start

func Start(handler interface{})

func StartHandler

func StartHandler(handler Handler)

func StartHandlerWithContext

func StartHandlerWithContext(ctx context.Context, handler Handler)

func StartWithContext

func StartWithContext(ctx context.Context, handler interface{})

func StartWithOptions

func StartWithOptions(handler interface{}, options ...Option)

Types

type Function

type Function = lambda.Function

func NewFunction

func NewFunction(handler Handler) *Function

type Handler

type Handler = lambda.Handler

func NewHandler

func NewHandler(handlerFunc interface{}) Handler

func NewHandlerWithOptions

func NewHandlerWithOptions(handlerFunc interface{}, options ...Option) Handler

type Option

type Option = lambda.Option

func WithContext

func WithContext(ctx context.Context) Option

func WithEnableSIGTERM

func WithEnableSIGTERM(callbacks ...func()) Option

func WithSetEscapeHTML

func WithSetEscapeHTML(escapeHTML bool) Option

func WithSetIndent

func WithSetIndent(prefix, indent string) Option

Jump to

Keyboard shortcuts

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