Documentation ¶
Index ¶
- Constants
- func CreateBarebonesTLSConfig() (c *tls.Config, err error)
- func MakePipe() (pipe [2]net.Conn)
- func NewOnceCloser(c io.Closer) io.Closer
- func RunSimpleSwitch(red, blue io.ReadWriteCloser, rb, br Translator)
- type Base64Dec
- type Base64Enc
- type Compressor
- type CopyPass
- type Decompressor
- type DummyPass
- type HTTPPacker
- type HTTPUnpacker
- type LVPacker
- type LVUnpacker
- type OnceCloser
- type Padder
- type Pass
- type PassManager
- type RC4Pass
- type Repeater
- type SimpleSwitch
- type Translator
- type Unpadder
Constants ¶
View Source
const DEFAULT_HOST = "www.qiandu.com"
View Source
const EMOJI_BEGIN = "😀😁😂😃😄😅😆"
View Source
const EMOJI_END = "😐😑😶😏😔"
View Source
const HTTP_BUFFER_SIZE = 1 << 16
View Source
const TLS_APP_PROTO = "com.qiandu.spider"
Variables ¶
This section is empty.
Functions ¶
func RunSimpleSwitch ¶
func RunSimpleSwitch(red, blue io.ReadWriteCloser, rb, br Translator)
Types ¶
type Compressor ¶
type Compressor struct{}
func (*Compressor) RunOnBytes ¶
func (this *Compressor) RunOnBytes(p []byte) (result []byte, err error)
type Decompressor ¶
type Decompressor struct{}
func (*Decompressor) RunOnBytes ¶
func (this *Decompressor) RunOnBytes(p []byte) (result []byte, err error)
type HTTPPacker ¶
type HTTPPacker struct {
P Pass
}
type HTTPUnpacker ¶
type HTTPUnpacker struct {
P Pass
}
type LVUnpacker ¶
type LVUnpacker struct{}
type OnceCloser ¶
type OnceCloser struct {
// contains filtered or unexported fields
}
func (*OnceCloser) Close ¶
func (this *OnceCloser) Close() error
type PassManager ¶
type PassManager struct {
// contains filtered or unexported fields
}
func NewPassManager ¶
func NewPassManager() *PassManager
func (*PassManager) AddPass ¶
func (this *PassManager) AddPass(p Pass) *PassManager
func (*PassManager) RunOnBytes ¶
func (this *PassManager) RunOnBytes(buf []byte) (result []byte, err error)
type SimpleSwitch ¶
type SimpleSwitch struct {
// contains filtered or unexported fields
}
func NewSimpleSwitch ¶
func NewSimpleSwitch(red, blue io.ReadWriteCloser, rb, br Translator) *SimpleSwitch
func (*SimpleSwitch) Run ¶
func (this *SimpleSwitch) Run()
Click to show internal directories.
Click to hide internal directories.