idlehttp

package
v0.0.75 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IdleTracker

type IdleTracker struct {
	Context context.Context
	// contains filtered or unexported fields
}

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)

func (*IdleTracker) ServeIdle

func (t *IdleTracker) ServeIdle(server *http.Server, listenernum int) error

func (*IdleTracker) Shutdown

func (t *IdleTracker) Shutdown(server *http.Server, ctx context.Context) error

type Server

type Server struct {
	http.Server
	Idle *IdleTracker
}

func (*Server) ServeIdle

func (s *Server) ServeIdle(fdnum int) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL