Versions in this module Expand all Collapse all v1 v1.7.3 Apr 9, 2017 v1.7.2 Mar 14, 2017 v1.7.1 Mar 3, 2017 v1.7.0 Feb 28, 2017 v1.6.5 Feb 21, 2017 Changes in this version type Config + SSLAutocertForceRSA bool + SSLAutocertServerName string v1.6.4 Feb 4, 2017 Changes in this version type Config + WebsocketCompressionLevel int v1.6.3 Jan 19, 2017 v1.6.2 Jan 11, 2017 v1.6.1 Dec 25, 2016 Changes in this version type Config + SSLAutocert bool + SSLAutocertCacheDir string + SSLAutocertEmail string + SSLAutocertHostWhitelist []string v1.6.0 Dec 17, 2016 Changes in this version + const AdminWebsocketReadBufferSize + const AdminWebsocketWriteBufferSize + const CloseStatus + var DefaultConfig = &Config + var DefaultMuxOptions = MuxOptions + func DefaultMux(s *HTTPServer, muxOpts MuxOptions) *http.ServeMux + func HTTPServerConfigure(setter config.Setter) error + func HTTPServerPlugin(n *node.Node, getter config.Getter) (server.Server, error) + func New(n *node.Node, config *Config) (server.Server, error) + func NewSockJSHandler(s *HTTPServer, sockjsPrefix string, sockjsOpts sockjs.Options) http.Handler + type Config struct + HTTPAPIPort string + HTTPAddress string + HTTPAdminPort string + HTTPPort string + HTTPPrefix string + SSL bool + SSLCert string + SSLKey string + SockjsHeartbeatDelay int + SockjsURL string + Web bool + WebPath string + WebsocketCompression bool + WebsocketCompressionMinSize int + WebsocketReadBufferSize int + WebsocketWriteBufferSize int + func (c *Config) Validate() error + type HTTPServer struct + func (s *HTTPServer) APIHandler(w http.ResponseWriter, r *http.Request) + func (s *HTTPServer) AdminWebsocketHandler(w http.ResponseWriter, r *http.Request) + func (s *HTTPServer) AuthHandler(w http.ResponseWriter, r *http.Request) + func (s *HTTPServer) Logged(h http.Handler) http.Handler + func (s *HTTPServer) RawWebsocketHandler(w http.ResponseWriter, r *http.Request) + func (s *HTTPServer) Run() error + func (s *HTTPServer) Shutdown() error + func (s *HTTPServer) WrapShutdown(h http.Handler) http.Handler + type HandlerFlag int + const HandlerAPI + const HandlerAdmin + const HandlerDebug + const HandlerRawWS + const HandlerSockJS + func (flags HandlerFlag) String() string + type MuxOptions struct + Admin bool + HandlerFlags HandlerFlag + Prefix string + SockjsOptions sockjs.Options + Web bool + WebFS http.FileSystem + WebPath string