runtime

package
v0.0.0-...-b47dbfd Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2026 License: OSL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package runtime holds small helpers that inspect the process's runtime environment. Kept deliberately minimal — this is a shared surface, not a grab-bag for utility code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsLambda

func IsLambda() bool

IsLambda reports whether the current process is running inside an AWS Lambda execution environment. Detection is based on AWS_LAMBDA_RUNTIME_API, which the Lambda runtime always sets; it's absent on container images, local dev runs, and the long-running server deploys (Cloud Run / Container Apps).

Callers that need to gate non-Lambda-only behavior (e.g. background goroutines for stale-while-revalidate) should use this helper rather than reading the env var directly so the detection rule stays consistent across call sites.

Types

This section is empty.

Jump to

Keyboard shortcuts

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