Documentation ¶
Index ¶
- func MeterConn(l *cio.Logger, conn net.Conn) net.Conn
- func MeterRWC(l *cio.Logger, rwc io.ReadWriteCloser) io.ReadWriteCloser
- func NewRWCConn(rwc io.ReadWriteCloser) net.Conn
- func NewWebSocketConn(websocketConn *websocket.Conn) net.Conn
- type ConnCount
- type HTTPServer
- func (h *HTTPServer) Close() error
- func (h *HTTPServer) GoListenAndServe(addr string, handler http.Handler) error
- func (h *HTTPServer) GoListenAndServeContext(ctx context.Context, addr string, handler http.Handler) error
- func (h *HTTPServer) GoServe(ctx context.Context, l net.Listener, handler http.Handler) error
- func (h *HTTPServer) Wait() error
- type Meter
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.