dc

package
v2.1.9 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultDC = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Addr

type Addr struct {
	Network string
	Address string
}

func (Addr) String

func (d Addr) String() string

type Logger

type Logger interface {
	Info(msg string)
	WarningError(msg string, err error)
}

type Telegram

type Telegram struct {
	// contains filtered or unexported fields
}

func New

func New(ipPreference string, userOverrides map[int][]string) (*Telegram, error)

func (*Telegram) GetAddresses

func (t *Telegram) GetAddresses(dc int) []Addr

Jump to

Keyboard shortcuts

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