Versions in this module Expand all Collapse all v1 v1.0.0 Nov 12, 2023 Changes in this version + var UnifiedDelay = atomic.NewBool(false) + func ParseProxy(mapping map[string]any) (C.Proxy, error) + type Proxy struct + func NewProxy(adapter C.ProxyAdapter) *Proxy + func (p *Proxy) Alive() bool + func (p *Proxy) AliveForTestUrl(url string) bool + func (p *Proxy) DelayHistory() []C.DelayHistory + func (p *Proxy) DelayHistoryForTestUrl(url string) []C.DelayHistory + func (p *Proxy) Dial(metadata *C.Metadata) (C.Conn, error) + func (p *Proxy) DialContext(ctx context.Context, metadata *C.Metadata, opts ...dialer.Option) (C.Conn, error) + func (p *Proxy) DialUDP(metadata *C.Metadata) (C.PacketConn, error) + func (p *Proxy) ExtraDelayHistory() map[string][]C.DelayHistory + func (p *Proxy) LastDelay() (delay uint16) + func (p *Proxy) LastDelayForTestUrl(url string) (delay uint16) + func (p *Proxy) ListenPacketContext(ctx context.Context, metadata *C.Metadata, opts ...dialer.Option) (C.PacketConn, error) + func (p *Proxy) MarshalJSON() ([]byte, error) + func (p *Proxy) URLTest(ctx context.Context, url string, expectedStatus utils.IntRanges[uint16], ...) (t uint16, err error)