Documentation ¶
Index ¶
Constants ¶
View Source
const ( CleartextPort = 1080 // TODO: waiting for IANA consideration. EncryptedPort = 8389 )
View Source
const ProtocolVersion byte = 212
ProtocolVersion is SOCKS 6 wireformat version
TODO: set to const 6 and update comment when standardized 1xx: represent draft xx 2xx: based on draft xx
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CancellableDefer ¶
type CancellableDefer struct {
// contains filtered or unexported fields
}
func NewCancellableDefer ¶
func NewCancellableDefer(f ...func()) *CancellableDefer
func (*CancellableDefer) Add ¶
func (c *CancellableDefer) Add(f func())
func (*CancellableDefer) Cancel ¶
func (c *CancellableDefer) Cancel()
func (*CancellableDefer) Defer ¶
func (c *CancellableDefer) Defer()
type LeveledError ¶
func (LeveledError) Error ¶
func (e LeveledError) Error() string
func (LeveledError) Inner ¶
func (e LeveledError) Inner() error
func (LeveledError) Is ¶
func (e LeveledError) Is(e2 error) bool
func (LeveledError) Unwrap ¶
func (e LeveledError) Unwrap() error
func (LeveledError) WithVerbose ¶
func (e LeveledError) WithVerbose(f string, v ...interface{}) LeveledError
type SyncMap ¶
type SyncMap[K comparable, V any] struct { // contains filtered or unexported fields }
func NewSyncMap ¶
func NewSyncMap[K comparable, V any]() SyncMap[K, V]
Source Files ¶
Click to show internal directories.
Click to hide internal directories.