# README
rest
This is the template repository for a standard RESTful webservice for ndev.
For a sample of how to use it, see /cmd/demo
.
# Packages
No description provided by the author
# Functions
DefaultConfig creates a default configuration including the values that are used by the standard server.
FatalFunc returns a function that logs and shuts down the service.
LogMW wraps a regular handler and replaces the writer with some logging middleware.
NewConfig constructs an empty config.
StandardSetup is what should be called to set up the service before running it.
WatchSignals registers with the operating system to receive specific signals and can call functions on those signals.
# Structs
ConfigItem is one element of the Config map.
LogWriter proxies http.ResponseWriter and logs.
# Interfaces
Builder is the interface to which all service builders must conform.
# Type aliases
Config maintains a map of configuration values.