proxy

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package proxy builds a gotd/td dcs.Resolver from a proxy URL, so every command can route MTProto traffic through a SOCKS5 or MTProxy proxy.

Supported URL schemes:

socks5://[user:pass@]host:port      SOCKS5 (also socks5h://)
tg://proxy?server=&port=&secret=     MTProxy (native)

An empty URL yields a nil resolver (use the default).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Resolver

func Resolver(raw string) (dcs.Resolver, error)

Resolver returns a dcs.Resolver for the given proxy URL, or (nil, nil) when raw is empty (meaning: use gotd's default resolver).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL