Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectionWatcher ¶
type ConnectionWatcher struct {
// contains filtered or unexported fields
}
func (*ConnectionWatcher) Add ¶
func (cw *ConnectionWatcher) Add(c int64)
Add adds c to the number of active connections.
func (*ConnectionWatcher) Count ¶
func (cw *ConnectionWatcher) Count() int
Count returns the number of connections at the time the call.
func (*ConnectionWatcher) OnStateChange ¶
func (cw *ConnectionWatcher) OnStateChange(conn net.Conn, state http.ConnState)
OnStateChange records open connections in response to connection state changes. Set net/http Server.ConnState to this method as value.
Click to show internal directories.
Click to hide internal directories.