Skip to content

Latest commit

 

History

History
51 lines (45 loc) · 2.52 KB

File metadata and controls

51 lines (45 loc) · 2.52 KB

API Reference

简体中文 | Docs Index

This inventory is generated from go doc -short for the packages in this repository. It is a quick public-surface map; source files and tests remain the authority for exact semantics.

Packages

gnalloy.org/handler-proxy

Package name: proxy

const SOCKS4Version byte = 0x04 ...
const SOCKS5Version byte = 0x05 ...
var ErrNeedMore = errors.New("gnalloy/handler/proxy: need more bytes") ...
func AppendHTTPConnectRequest(dst []byte, req HTTPConnectRequest) ([]byte, error)
func AppendSOCKS4Bind(dst []byte, address string, userID string) ([]byte, error)
func AppendSOCKS4Command(dst []byte, command byte, address string, userID string) ([]byte, error)
func AppendSOCKS4Connect(dst []byte, address string, userID string) ([]byte, error)
func AppendSOCKS5Bind(dst []byte, address string) ([]byte, error)
func AppendSOCKS5Command(dst []byte, command byte, address string) ([]byte, error)
func AppendSOCKS5Connect(dst []byte, address string) ([]byte, error)
func AppendSOCKS5Greeting(dst []byte, methods ...byte) ([]byte, error)
func AppendSOCKS5UDPAssociate(dst []byte, address string) ([]byte, error)
func AppendSOCKS5UsernamePasswordAuth(dst []byte, username string, password string) ([]byte, error)
func IsSOCKS5PrivateAuthMethod(method byte) bool
func ParseSOCKS5GreetingResponse(data []byte) (byte, int, error)
func ParseSOCKS5UsernamePasswordAuthResponse(data []byte) (byte, int, error)
type HAProxyInfo struct{ ... }
    func ParseHAProxyHeader(data []byte) (HAProxyInfo, int, error)
type HTTPConnectClient struct{ ... }
    func NewHTTPConnectClient(req HTTPConnectRequest) (*HTTPConnectClient, error)
type HTTPConnectEvent struct{ ... }
type HTTPConnectRequest struct{ ... }
type HTTPConnectResponse struct{ ... }
    func ParseHTTPConnectResponse(data []byte) (HTTPConnectResponse, int, error)
type Headers map[string]string
type SOCKS4Client struct{ ... }
    func NewSOCKS4Client(target string, userID string) (*SOCKS4Client, error)
type SOCKS4Event struct{ ... }
type SOCKS4Reply struct{ ... }
    func ParseSOCKS4Reply(data []byte) (SOCKS4Reply, int, error)
type SOCKS5Client struct{ ... }
    func NewSOCKS5Client(target string, methods ...byte) (*SOCKS5Client, error)
    func NewSOCKS5UsernamePasswordClient(target string, username string, password string, methods ...byte) (*SOCKS5Client, error)
type SOCKS5Event struct{ ... }
type SOCKS5Reply struct{ ... }
    func ParseSOCKS5Reply(data []byte) (SOCKS5Reply, int, error)
type SOCKS5UsernamePassword struct{ ... }