package
0.0.0-20230227064930-e48602c2d9c3
Repository: https://github.com/grindlemire/go-rest-service-example.git
Documentation: pkg.go.dev

# Functions

Handler configures the rest handler that will route and respond to requests.
HTTPPort configures the port the http redirect is served over.
HTTPSPort configures the port the https server serves on.
NewServer creates a new http server with a router.
TLSCertPath configures the path to the tls certificate.
TLSKeyPath configures the path to the tls private key.

# Structs

Server is a wrapper around the http server that manages signals Note that I don't use life' lifecycle here because we have a blocking call for run (so I don't use life.Close or life.Done for managing the background thread.

# Type aliases

Opt is an option for configuring the rest server.