package
Version:
v0.0.0-...-c5b96c6
Opens a new window with list of versions in this module.
Published: Mar 2, 2018
License: MIT
Opens a new window with license information.
Imports: 14
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Base handler type
NewBase creates a new base handler
TODO: should this take an http.handler OR a more processed (ie. pre-read) object?
type HTTP struct {
Base
}
HTTP is an HTTP server based http handler
NewHTTP creates a new HTTP server with the provided options
Close exits a server instance
Run starts a server instance (this only returns on error or exit)
type Handler interface {
Run()
Close()
}
Handler run interface
type Lambda struct {
Base
}
Lambda is an AWS Lambda based http handler
NewLambda creates a new lambda handler with the given http handler func
Close stub to fulfil interface
Run starts a lambda server instance
Source Files
¶
Click to show internal directories.
Click to hide internal directories.