Documentation ¶
Index ¶
- func NewWriteBackProxy(wb C.WriteBack) C.WriteBackProxy
- 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) DeleteLockForLocalConn(lAddr, key string)
- func (t *Table) GetForLocalConn(lAddr, rAddr string) *net.UDPConn
- func (t *Table) GetOrCreate(key string, maker func() C.PacketSender) (C.PacketSender, 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWriteBackProxy ¶
func NewWriteBackProxy(wb C.WriteBack) C.WriteBackProxy
Types ¶
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
func (*Table) AddForLocalConn ¶
func (*Table) DeleteForLocalConn ¶
func (*Table) DeleteLockForLocalConn ¶
func (*Table) GetOrCreate ¶
func (t *Table) GetOrCreate(key string, maker func() C.PacketSender) (C.PacketSender, bool)
func (*Table) GetOrCreateLockForLocalConn ¶
Click to show internal directories.
Click to hide internal directories.