Versions in this module Expand all Collapse all v0 v0.2.0 Apr 20, 2023 Changes in this version + type Component struct + Stat stat.Stat + func NewComponent() *Component + func (*Component) Settings() *Config + func (*Component) WithStat(s stat.Stat) *Component + func (c *Component) New(_ context.Context, conf *Config) (*ConnState, error) + type Config struct + ActiveCounter string + ActiveGauge string + ClosedCounter string + HijackedCounter string + IdleCounter string + IdleGauge string + NewCounter string + NewGauge string + ReportInterval time.Duration + func (*Config) Description() string + func (*Config) Name() string + type ConnState struct + ActiveClientCounterName string + ActiveClientGaugeName string + ClosedClientCounterName string + HijackedClientCounterName string + IdleClientCounterName string + IdleClientGaugeName string + Interval time.Duration + NewClientCounterName string + NewClientGaugeName string + Stat stat.Stat + Tracking *sync.Map + func Load(ctx context.Context, source settings.Source, c *Component) (*ConnState, error) + func (c *ConnState) Close() error + func (c *ConnState) HandleEvent(conn net.Conn, state http.ConnState) + func (c *ConnState) Report()