Versions in this module Expand all Collapse all v1 v1.0.0 Sep 30, 2026 Changes in this version + type RingBuffer struct + func NewRingBuffer(size int) *RingBuffer + func (rb *RingBuffer) Close() + func (rb *RingBuffer) Pop() *TrafficEvent + func (rb *RingBuffer) Push(event *TrafficEvent) bool + func (rb *RingBuffer) Stats() (queued uint64, dropped uint64, total uint64) + func (rb *RingBuffer) TryPop() *TrafficEvent + type TrafficEvent struct + ClientIP string + Duration time.Duration + Host string + ID string + Method string + Path string + Proto string + ReqBody []byte + ReqHeaders http.Header + RespBody []byte + RespHeaders http.Header + Scheme string + StatusCode int + TLS bool + TLSServer string + Timestamp time.Time + URL string