Documentation ¶
Index ¶
- type Logger
- type Options
- type Server
- func (s *Server) Addr() string
- func (s *Server) HandlerChain(h http.Handler, secure bool) http.Handler
- func (s *Server) Listen() (net.Listener, error)
- func (s *Server) Log(keyvals ...interface{}) error
- func (s *Server) RegisterHandler(pattern string, handler http.Handler, secure bool)
- func (s *Server) Run(signals <-chan os.Signal, ready chan<- struct{}) error
- func (s *Server) Start() error
- func (s *Server) Stop() error
- type TLS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface { Warn(args ...interface{}) Warnf(template string, args ...interface{}) }
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) HandlerChain ¶
func (*Server) RegisterHandler ¶
RegisterHandler registers into the ServeMux a handler chain that borrows its security properties from the fabhttp.Server. This method is thread safe because ServeMux.Handle() is thread safe, and options are immutable. This method can be called either before or after Server.Start(). If the pattern exists the method panics.
Click to show internal directories.
Click to hide internal directories.