Documentation
¶
Index ¶
- type IdleTracker
- func (t *IdleTracker) ConnState(conn net.Conn, state http.ConnState)
- func (t *IdleTracker) Done() <-chan time.Time
- func (t *IdleTracker) GoShutdown(server *http.Server)
- func (t *IdleTracker) ServeIdle(server *http.Server, listenernum int) error
- func (t *IdleTracker) Shutdown(server *http.Server, ctx context.Context) error
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IdleTracker ¶
func NewIdleTracker ¶
func NewIdleTracker(ctx context.Context, idle time.Duration) *IdleTracker
func (*IdleTracker) ConnState ¶
func (t *IdleTracker) ConnState(conn net.Conn, state http.ConnState)
func (*IdleTracker) Done ¶
func (t *IdleTracker) Done() <-chan time.Time
func (*IdleTracker) GoShutdown ¶
func (t *IdleTracker) GoShutdown(server *http.Server)
Click to show internal directories.
Click to hide internal directories.