lambdalifecycle

package module
v0.0.0-...-fefd744 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetNotifier

func SetNotifier(n Notifier)

Types

type Listener

type Listener interface {
	// FunctionInvoked is called after the extension receives a "Next" notification.
	FunctionInvoked()
	// FunctionFinished is called after the extension is notified that the function has completed, but before the environment is frozen.
	// The environment is only frozen once all listeners have returned.
	FunctionFinished()
	// EnvironmentShutdown is called when the extension is notified that the environment is about to shut down.
	// Shutting down of the collector components only happens after all listeners have returned.
	EnvironmentShutdown()
}

Listener interface used to notify objects of Lambda lifecycle events.

type Notifier

type Notifier interface {
	AddListener(listener Listener)
}

func GetNotifier

func GetNotifier() Notifier

Jump to

Keyboard shortcuts

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