Versions in this module Expand all Collapse all v1 v1.54.4 Nov 23, 2020 Changes in this version + var ContextAuthKey = &contextAuthType + var ContextUserKey = &contextUserType + var DefaultOpt = Options + var Help = ... + type AuthFn func(user, pass string) (value interface{}, err error) + type Options struct + Auth AuthFn + BaseURL string + BasicPass string + BasicUser string + ClientCA string + HtPasswd string + ListenAddr string + MaxHeaderBytes int + Realm string + ServerReadTimeout time.Duration + ServerWriteTimeout time.Duration + SslCert string + SslKey string + Template string + type Server struct + HTMLTemplate *template.Template + Opt Options + func NewServer(handler http.Handler, opt *Options) *Server + func (s *Server) Close() + func (s *Server) Path(w http.ResponseWriter, r *http.Request) (Path string, ok bool) + func (s *Server) Serve() error + func (s *Server) URL() string + func (s *Server) UsingAuth() bool + func (s *Server) Wait()