server

package
v0.0.0-...-e12b6f5 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(ctx context.Context) (h http.Handler, err error)

func Run

func Run(ctx context.Context) error

Run runs the server. The context will be cancelled if we receive a SIGTERM (ctrl-c)

Types

type ServerConfig

type ServerConfig struct {
	Port       int  `envconfig:"PORT"              default:"4433"`
	LocalCerts bool `envconfig:"LOCAL_CERTS"       default:"false" split_words:"true"`
}

ServerConfig is configuration for the server parsed from the env.

Jump to

Keyboard shortcuts

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