app

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package app contains the startup code for the app.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, appConfig Config) error

Types

type Config

type Config struct {
	// Filename of the config file.
	Filename string
	// Listen address for requests.
	Listen string
	// MetricsListen address for metrics/health checks.
	MetricsListen string
	// LambdaServiceFactory to be used.
	LambdaServiceFactory func(context.Context, *config.AWS) (lambda.Facade, error)
	// RunFunc which runs the app.
	RunFunc func(context.Context, string, http.Handler, *config.HTTP) error
}

Config for the app.

Jump to

Keyboard shortcuts

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