app

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithExtensionName

func WithExtensionName(name string) configOption

WithExtensionName sets the extension name.

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 WithLogLevel

func WithLogLevel(level string) configOption

WithLogLevel sets the log level.

func WithLogsapiAddress

func WithLogsapiAddress(s string) configOption

WithLogsapiAddress sets the listener address of the server listening for logs event.

func WithoutLogsAPI

func WithoutLogsAPI() configOption

WithoutLogsAPI disables the logs api.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

App is the main application.

func New

func New(opts ...configOption) (*App, error)

New returns an App or an error if the creation failed.

func (*App) Run

func (app *App) Run(ctx context.Context) error

Run runs the app.

Jump to

Keyboard shortcuts

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