Versions in this module Expand all Collapse all v1 v1.0.1 Mar 21, 2025 v1.0.0 Jul 23, 2023 Changes in this version + type CKey [2]uint64 + func NewConnKeyByString(host, port string) (CKey, error) + func NewConnKeyFromNetConn(conn net.Conn) (CKey, error) + type ConnTable struct + func New() *ConnTable + func (t *ConnTable) FlushOlderThan(s time.Duration) + func (t *ConnTable) Get(ck CKey) *Metadata + func (t *ConnTable) Register(srcIP, srcPort string, dstPort uint16, rule *rules.Rule) (*Metadata, error) + func (t *ConnTable) RegisterConn(conn net.Conn, rule *rules.Rule) (*Metadata, error) + type Metadata struct + Added time.Time + Rule *rules.Rule + TargetPort uint16