Documentation
¶
Index ¶
- func CircuitDialer(skf func() (*servicekey.T, error), circuitf func() ([]*relayentry.T, error), ...) func(string, string) (net.Conn, error)
- func GetContractInfo(cl *client.Client, sc *texturl.URL) (info *contractinfo.T, rl relaylist.T, err error)
- func ListenH2C(addr string, tc *tls.Config, dialer DialFunc, errf func(error)) error
- func ListenSOCKS(addr string, dialer DialFunc, errf func(error)) (err error)
- func NewSKFromPof(cl *client.Client, skurl string, p *pof.T) (*servicekey.T, error)
- func PickPofs(pofs ...*pof.T) (r []*pof.T)
- func PickSK(sks ...*servicekey.T) (sk *servicekey.T)
- func ProxyTCP(l net.Listener, dialer DialFunc, errf func(error), udpaddr net.Addr)
- func ProxyUDP(l net.PacketConn, dialer DialFunc, errf func(error))
- func RefreshSK(fm fsdir.T, actf Activator) (sk *servicekey.T, err error)
- func SaveContractInfo(fm fsdir.T, ci *contractinfo.T, rl relaylist.T) (err error)
- func TraceOrigin(err error, circ circuit.T) (r *relayentry.T)
- type Activator
- type AlwaysFetchFunc
- type DialFunc
- type SKSourceFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CircuitDialer ¶
func GetContractInfo ¶
func ListenH2C ¶
ListenH2C listens on the given address, waiting for h2c connection requests to dial through the circuit. The target protocol and address are supplied in the headers which allows using HPACK compression and immediate status feedback.
func ListenSOCKS ¶
handle everything SOCKSv5-related on the same address
func NewSKFromPof ¶
func PickSK ¶
func PickSK(sks ...*servicekey.T) (sk *servicekey.T)
func ProxyUDP ¶
func ProxyUDP(l net.PacketConn, dialer DialFunc, errf func(error))
handle UDP packets
func SaveContractInfo ¶
func TraceOrigin ¶
func TraceOrigin(err error, circ circuit.T) (r *relayentry.T)
Types ¶
type AlwaysFetchFunc ¶
type AlwaysFetchFunc func() (*servicekey.T, error)
func AlwaysFetch ¶
func AlwaysFetch(f SKSourceFunc) AlwaysFetchFunc
type SKSourceFunc ¶
type SKSourceFunc func(bool) (*servicekey.T, error)
Click to show internal directories.
Click to hide internal directories.