Documentation ¶
Index ¶
- Constants
- Variables
- func Abs(x int64) int64
- type Forwarder
- type Header
- type Logger
- func (l *Logger) Critical(format string, a ...interface{})
- func (l *Logger) Debug(format string, a ...interface{})
- func (l *Logger) Error(format string, a ...interface{})
- func (l *Logger) Info(format string, a ...interface{})
- func (l *Logger) SetLevel(level string)
- func (l *Logger) Warning(format string, a ...interface{})
- type MuxClient
- type MuxPeer
- type MuxServer
- type PktFilter
- type UdpClient
- type UdpServer
Constants ¶
View Source
const ( HEADER_LEN = 16 MAX_MTU = 1500 - 20 - 8 - HEADER_LEN // ETH-IP-UDP-MUX MAGIC = 20202 )
View Source
const PATH_SIZE = 4
View Source
const RATE_LIMIT = 160000 // pps
Variables ¶
View Source
var Log = log
Functions ¶
Types ¶
type Header ¶
func (*Header) FromNetwork ¶
type MuxClient ¶
type MuxClient struct { Servers []string // upstream IP:Port pairs // contains filtered or unexported fields }
type MuxServer ¶
type MuxServer struct { Port int // server listen port // contains filtered or unexported fields }
type UdpClient ¶
type UdpClient struct { Servers []string // upstream IP:Port pairs // contains filtered or unexported fields }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.