Documentation ¶
Index ¶
- Variables
- func Base64Decode(raw string) string
- func NewProxyDirect() constant.ProxyAdapter
- func ToOption(src any) any
- type Adapter
- func NewAdapter(c constant.ProxyAdapter, o any) (*Adapter, error)
- func NewDirect() (*Adapter, error)
- func ParseClash(m map[string]any) (*Adapter, error)
- func ParseClashWithJson(s []byte) (*Adapter, error)
- func ParseClashWithYaml(s []byte) (*Adapter, error)
- func ParseHysteria(s string) (*Adapter, error)
- func ParseHysteria2(s string) (*Adapter, error)
- func ParseLink(s string) (*Adapter, error)
- func ParseLinkHttp(s string) (*Adapter, error)
- func ParseLinkSS(s string) (*Adapter, error)
- func ParseLinkSSR(s string) (*Adapter, error)
- func ParseLinkSocket5(s string) (*Adapter, error)
- func ParseLinkTrojan(s string) (*Adapter, error)
- func ParseLinkVless(s string) (*Adapter, error)
- func ParseLinkVmess(s string) (*Adapter, error)
- func ParseSubscription(b []byte) (nodes []*Adapter)
- func (p *Adapter) DialForDns(network, addr string) (net.Conn, error)
- func (p *Adapter) DnsMode(m DnsMode, nameservers ...string) *Adapter
- func (p *Adapter) GetClient() *http.Client
- func (p *Adapter) GetClientWithTimeout(timeout time.Duration) *http.Client
- func (p *Adapter) Hostname() string
- func (p *Adapter) HttpDial(network, addr string) (net.Conn, error)
- func (p *Adapter) HttpDialContext(ctx context.Context, network, addr string) (net.Conn, error)
- func (p *Adapter) HttpDialDialer(ctx context.Context, network, addr string, opts ...dialer.Option) (net.Conn, error)
- func (p *Adapter) Md5() string
- func (p *Adapter) R() *resty.Request
- func (p *Adapter) ShortId() string
- func (p *Adapter) String() string
- func (p *Adapter) ToClash() map[string]any
- func (p *Adapter) ToV2ray() string
- func (p *Adapter) Transport() http.RoundTripper
- func (p *Adapter) TypeString() string
- func (p *Adapter) UniqueId() string
- type DnsMode
- type ProxyDirect
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Base64Decode ¶
func NewProxyDirect ¶
func NewProxyDirect() constant.ProxyAdapter
Types ¶
type Adapter ¶
type Adapter struct { constant.ProxyAdapter // contains filtered or unexported fields }
func NewAdapter ¶
func NewAdapter(c constant.ProxyAdapter, o any) (*Adapter, error)
func ParseClashWithJson ¶
func ParseClashWithYaml ¶
func ParseHysteria ¶
func ParseHysteria2 ¶
func ParseLinkHttp ¶
func ParseLinkSS ¶
func ParseLinkSSR ¶
func ParseLinkSocket5 ¶
func ParseLinkTrojan ¶
func ParseLinkVless ¶
func ParseLinkVmess ¶
func ParseSubscription ¶
func (*Adapter) GetClientWithTimeout ¶
func (*Adapter) HttpDialContext ¶
func (*Adapter) HttpDialDialer ¶
func (*Adapter) Transport ¶
func (p *Adapter) Transport() http.RoundTripper
func (*Adapter) TypeString ¶
type ProxyDirect ¶
Click to show internal directories.
Click to hide internal directories.