Documentation ¶
Index ¶
- func DebugPprofCmdlineHandler(w http.ResponseWriter, r *http.Request)
- func DebugPprofHandler(w http.ResponseWriter, r *http.Request)
- func DebugPprofProfileHandler(w http.ResponseWriter, r *http.Request)
- func DebugPprofSymbolHandler(w http.ResponseWriter, r *http.Request)
- func DebugPprofTraceHandler(w http.ResponseWriter, r *http.Request)
- func Error(w http.ResponseWriter, error string, code int)
- func NotFound(w http.ResponseWriter, r *http.Request)
- type ResponseWriter
- type Server
- type ServerConfig
- type ServiceHttpHandler
- type Stats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DebugPprofCmdlineHandler ¶
func DebugPprofCmdlineHandler(w http.ResponseWriter, r *http.Request)
func DebugPprofHandler ¶
func DebugPprofHandler(w http.ResponseWriter, r *http.Request)
func DebugPprofProfileHandler ¶
func DebugPprofProfileHandler(w http.ResponseWriter, r *http.Request)
func DebugPprofSymbolHandler ¶
func DebugPprofSymbolHandler(w http.ResponseWriter, r *http.Request)
func DebugPprofTraceHandler ¶
func DebugPprofTraceHandler(w http.ResponseWriter, r *http.Request)
Types ¶
type ResponseWriter ¶
type ResponseWriter struct { http.ResponseWriter // contains filtered or unexported fields }
func NewResponseWriter ¶
func NewResponseWriter(w http.ResponseWriter, writer io.Writer) *ResponseWriter
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a http server
func (*Server) Handle ¶
func (s *Server) Handle(name string, handler ServiceHttpHandler)
func (*Server) Init ¶
func (s *Server) Init(name string, config *ServerConfig)
type ServerConfig ¶
type ServiceHttpHandler ¶
type ServiceHttpHandler func(http.ResponseWriter, *http.Request)
func NotFoundHandler ¶
func NotFoundHandler() ServiceHttpHandler
NotFoundHandler returns a simple request handler that replies to each request with a “404 page not found” reply.
Click to show internal directories.
Click to hide internal directories.