server

package
v1.1.2 Latest Latest
Warning

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

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

Documentation

Overview

Package server contains the startup code for the server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, serverConfig 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) (aws.LambdaService, error)
	// RunFunc which runs the server.
	RunFunc func(context.Context, string, http.Handler) error
}

Config for the server.

Jump to

Keyboard shortcuts

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