Documentation ¶
Index ¶
- Constants
- func AllowAllFunc(_ net.Addr) bool
- func AllowByRatelimit(z rlzone.Ratelimiter[netip.Addr]) func(net.Addr) bool
- func FixedTimeLimitFunc(d time.Duration) func() time.Duration
- func GenPSK(length int) ([]byte, error)
- func GenPSKHex(length int) (string, error)
- func NetAddrToNetipAddrPort(a net.Addr) netip.AddrPort
- func PSKFromHex(input string) ([]byte, error)
- func PairConn(ctx context.Context, left, right net.Conn, idleTimeout time.Duration, ...)
- func TimeLimitFunc(low, high time.Duration) func() time.Duration
- type DynDialer
- type StaleMode
Constants ¶
View Source
const (
MaxPktBuf = 65536
)
Variables ¶
This section is empty.
Functions ¶
func AllowAllFunc ¶
func AllowByRatelimit ¶
func PSKFromHex ¶
Types ¶
type DynDialer ¶
type DynDialer struct {
// contains filtered or unexported fields
}
func NewDynDialer ¶
func (DynDialer) DialContext ¶
Click to show internal directories.
Click to hide internal directories.