Documentation ¶
Index ¶
- func Message(status string, data interface{}) string
- type ResponseWriteTracker
- type Server
- func (s *Server) Listen(addr string) error
- func (s *Server) ListenAndServe(addr string) error
- func (s *Server) ListenURL() string
- func (s *Server) Serve() error
- func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (s *Server) SetTLS(keyFile, certFile string)
- func (s *Server) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ResponseWriteTracker ¶
type ResponseWriteTracker struct { http.ResponseWriter // contains filtered or unexported fields }
func (*ResponseWriteTracker) WriteHeader ¶
func (w *ResponseWriteTracker) WriteHeader(code int)
type Server ¶
func (*Server) ListenAndServe ¶
Click to show internal directories.
Click to hide internal directories.