Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MeterConn ¶
MeterConn inserts Meter into the connection path if the linked logger is in debug mode, otherwise this is a no-op
func MeterRWC ¶
func MeterRWC(l *cio.Logger, rwc io.ReadWriteCloser) io.ReadWriteCloser
MeterRWC inserts Meter into the RWC path if the linked logger is in debug mode, otherwise this is a no-op
func NewRWCConn ¶
func NewRWCConn(rwc io.ReadWriteCloser) net.Conn
NewRWCConn converts a RWC into a net.Conn
Types ¶
type ConnCount ¶
type ConnCount struct {
// contains filtered or unexported fields
}
ConnCount is a connection counter
type HTTPServer ¶
HTTPServer extends net/http Server and adds graceful shutdowns
func (*HTTPServer) Close ¶
func (h *HTTPServer) Close() error
func (*HTTPServer) GoListenAndServe ¶
func (h *HTTPServer) GoListenAndServe(addr string, handler http.Handler) error
func (*HTTPServer) GoListenAndServeContext ¶
func (*HTTPServer) Wait ¶
func (h *HTTPServer) Wait() error
Click to show internal directories.
Click to hide internal directories.