Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrFailedRegistration = errors.New("extension failed to register with lambda") ErrIssueProgress = errors.New("unable continue execution") ErrServerEarlyExit = errors.New("server has shutdown early without cause") ErrFailedTelemetrySubscription = errors.New("extension failed to subscribe to lambda telemetry API") )
Functions ¶
This section is empty.
Types ¶
type Manager ¶
Manager ensures that the lifetime management of the lambda
func NewManager ¶
func NewManager(lambdaDomain string, lambdaFileName string, log logrus.FieldLogger, opts ...ManagerOpt) Manager
type ManagerOpt ¶
type ManagerOpt func(*manager)
func WithManualFlushEnabled ¶
func WithManualFlushEnabled(fc flush.Coordinator, telemetryServerAddr string) ManagerOpt
WithManualFlushEnabled enables a flush per invocation, it requires a flush.Coordinator to trigger the flush and will register it as a telemetry server callback. A server address will also need to be provided for the server to run on.
Directories ¶
Path | Synopsis |
---|---|
Package api defines the interaction that is done between the aditional runtime (the current running extension) and the main business logic function running along aside it.
|
Package api defines the interaction that is done between the aditional runtime (the current running extension) and the main business logic function running along aside it. |
Package telemetry defines the apis and server required to interact with the subscribe to the Telemetry API for AWS lambdas.
|
Package telemetry defines the apis and server required to interact with the subscribe to the Telemetry API for AWS lambdas. |
Click to show internal directories.
Click to hide internal directories.