Documentation ¶
Index ¶
Constants ¶
View Source
const ( // default ports to listen on PORT_DEFAULT = "8080" PORT_DEFAULT_TLS = "433" // ShutdownDelay is the time to wait for all request, go-routines etc complete ShutdownDelay = 30 // seconds )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
app holds all configs for the listener
func New ¶
func New(setupFunc SetupFunc, shutdownFunc ShutdownFunc) (*App, error)
New creates a new service listener instance and configures it with sensible defaults.
func (*App) ListenAutoTLS ¶
Click to show internal directories.
Click to hide internal directories.