Documentation
¶
Index ¶
- Constants
- func EncodeAsASCII(buf []byte) string
- func GetInspectHandler() http.Handler
- func InspectSummary(w io.Writer)
- func IsIOError(err error) bool
- func IsLegitProxiableIP(ip net.IP) bool
- func Proxy(conn, upConn io.ReadWriter)
- func RandDigits(size int) string
- func RandString(size int) string
- func UniqueId(size int) string
- type ReadWriteBuffer
- type Wildcard
Constants ¶
View Source
const ( UP_W = byte(1) UP_R = byte(1) << 1 LOCAL_W = byte(1) << 2 LOCAL_R = byte(1) << 3 )
View Source
const BUF_SIZE = 1024 * 4
View Source
const BUF_SIZE_MAX = 1024 * 1024 * 8
Variables ¶
This section is empty.
Functions ¶
func EncodeAsASCII ¶
func GetInspectHandler ¶
func InspectSummary ¶
func IsLegitProxiableIP ¶
func Proxy ¶
func Proxy(conn, upConn io.ReadWriter)
func RandDigits ¶
func RandString ¶
Types ¶
type ReadWriteBuffer ¶
type ReadWriteBuffer struct {
// contains filtered or unexported fields
}
func NewReadWriteBuffer ¶
func NewReadWriteBuffer() *ReadWriteBuffer
func (*ReadWriteBuffer) Close ¶
func (f *ReadWriteBuffer) Close() error
func (*ReadWriteBuffer) Closed ¶
func (f *ReadWriteBuffer) Closed() bool
Click to show internal directories.
Click to hide internal directories.