Versions in this module Expand all Collapse all v3 v3.0.1 Dec 12, 2020 v3.0.0 Dec 7, 2020 Changes in this version + type Handler func(http.ResponseWriter, *http.Request) + func (f Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) + type Option func(*Options) + func CloseTimeout(t time.Duration) Option + func IdleTimeout(t time.Duration) Option + func ListenIp(ip string) Option + func ListenPort(port int) Option + func ReadTimeout(t time.Duration) Option + func WriteTimeout(t time.Duration) Option + type Options struct + CloseTimeout time.Duration + IdleTimeout time.Duration + ListenIp string + ListenPort int + ReadTimeout time.Duration + WriteTimeout time.Duration + type WebServer struct + func NewWebServer(opts ...Option) *WebServer + func (w *WebServer) OnDestroy() + func (w *WebServer) OnInit() + func (w *WebServer) OnRun(closeSig chan bool) + func (w *WebServer) PrefixRoute(path string, f http.Handler) + func (w *WebServer) Route(path string, f Handler)