Documentation ¶
Index ¶
- type App
- type ConfigOption
- func WithAWSConfig(awsConfig aws.Config) ConfigOption
- func WithExtensionName(name string) ConfigOption
- func WithFunctionLogSubscription() ConfigOption
- func WithLambdaRuntimeAPI(api string) ConfigOption
- func WithLogLevel(level string) ConfigOption
- func WithLogsapiAddress(s string) ConfigOption
- func WithoutLogsAPI() ConfigOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App is the main application.
type ConfigOption ¶ added in v1.2.0
type ConfigOption func(*appConfig)
ConfigOption is used to configure the lambda extension
func WithAWSConfig ¶ added in v1.2.0
func WithAWSConfig(awsConfig aws.Config) ConfigOption
WithAWSConfig sets the AWS config.
func WithExtensionName ¶
func WithExtensionName(name string) ConfigOption
WithExtensionName sets the extension name.
func WithFunctionLogSubscription ¶ added in v1.2.0
func WithFunctionLogSubscription() ConfigOption
WithFunctionLogSubscription enables the logs api subscription to function log stream. This option will only work if LogsAPI is not disabled by the WithoutLogsAPI config option.
func WithLambdaRuntimeAPI ¶
func WithLambdaRuntimeAPI(api string) ConfigOption
WithLambdaRuntimeAPI sets the AWS Lambda Runtime API endpoint (normally taken from $AWS_LAMBDA_RUNTIME_API), used by the AWS client.
func WithLogsapiAddress ¶
func WithLogsapiAddress(s string) ConfigOption
WithLogsapiAddress sets the listener address of the server listening for logs event.
Click to show internal directories.
Click to hide internal directories.