MCPcopy Index your code
hub / github.com/aws/aws-lambda-go / StartHandlerWithContext

Function StartHandlerWithContext

lambda/entry.go:98–100  ·  view source on GitHub ↗

StartHandlerWithContext is the same as StartHandler except sets the base context for the function. Handler implementation requires a single "Invoke()" function: func Invoke(context.Context, []byte) ([]byte, error) Deprecated: use lambda.StartWithOptions(handler, lambda.WithContext(ctx)) instead

(ctx context.Context, handler Handler)

Source from the content-addressed store, hash-verified

96//
97// Deprecated: use lambda.StartWithOptions(handler, lambda.WithContext(ctx)) instead
98func StartHandlerWithContext(ctx context.Context, handler Handler) {
99 StartWithOptions(handler, WithContext(ctx))
100}
101
102func start(handler *handlerOptions) {
103 var keys []string

Callers

nothing calls this directly

Calls 2

StartWithOptionsFunction · 0.85
WithContextFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…