Versions in this module Expand all Collapse all v1 v1.0.2 Apr 25, 2024 v1.0.1 Apr 24, 2024 Changes in this version + func NewWriteBackProxy(wb C.WriteBack) C.WriteBackProxy + type Entry struct + LocalLockMap *xsync.MapOf[string, *sync.Cond] + LocalUDPConnMap *xsync.MapOf[string, *net.UDPConn] + PacketConn C.PacketConn + WriteBackProxy C.WriteBackProxy + type Table struct + func New() *Table + func (t *Table) AddForLocalConn(lAddr, rAddr string, conn *net.UDPConn) bool + func (t *Table) Delete(key string) + func (t *Table) DeleteForLocalConn(lAddr, key string) + func (t *Table) DeleteLock(lockKey string) + func (t *Table) DeleteLockForLocalConn(lAddr, key string) + func (t *Table) Get(key string) (C.PacketConn, C.WriteBackProxy) + func (t *Table) GetForLocalConn(lAddr, rAddr string) *net.UDPConn + func (t *Table) GetOrCreateLock(key string) (*sync.Cond, bool) + func (t *Table) GetOrCreateLockForLocalConn(lAddr, key string) (*sync.Cond, bool) + func (t *Table) RangeForLocalConn(lAddr string, f func(key string, value *net.UDPConn) bool) + func (t *Table) Set(key string, e C.PacketConn, w C.WriteBackProxy)