utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildDialer

func BuildDialer(localAddr string) func(ctx context.Context, network, addr string) (net.Conn, error)

BuildDialer возвращает dial-функцию привязанную к указанному локальному адресу. Если localAddr пуст — возвращает nil и gotd использует системный диалер по умолчанию.

func ParseProxyURL

func ParseProxyURL(raw string) (server string, port int, secret []byte, err error)

ParseProxyURL парсит tg://proxy?... или https://t.me/proxy?... возвращает server, port, secret в байтах.

Types

This section is empty.

Jump to

Keyboard shortcuts

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