Documentation ¶
Index ¶
- func NewWriteBackProxy(wb C.WriteBack) C.WriteBackProxy
- type Entry
- type 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWriteBackProxy ¶
func NewWriteBackProxy(wb C.WriteBack) C.WriteBackProxy
Types ¶
type Entry ¶
type Entry struct { PacketConn C.PacketConn WriteBackProxy C.WriteBackProxy LocalUDPConnMap *xsync.MapOf[string, *net.UDPConn] LocalLockMap *xsync.MapOf[string, *sync.Cond] }
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
func (*Table) AddForLocalConn ¶
func (*Table) DeleteForLocalConn ¶
func (*Table) DeleteLock ¶
func (*Table) DeleteLockForLocalConn ¶
func (*Table) Get ¶
func (t *Table) Get(key string) (C.PacketConn, C.WriteBackProxy)
func (*Table) GetOrCreateLockForLocalConn ¶
func (*Table) RangeForLocalConn ¶
func (*Table) Set ¶
func (t *Table) Set(key string, e C.PacketConn, w C.WriteBackProxy)
Click to show internal directories.
Click to hide internal directories.