term

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transport

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

Transport представляет терминальный интерфейс

func New

func New(
	telegramRepo telegramRepo,
	termRepo termRepo,
	authService authService,
) *Transport

New создает новый экземпляр терминального транспорта

func (*Transport) Close

func (t *Transport) Close() error

Close закрывает транспорт

func (*Transport) StartContext

func (t *Transport) StartContext(ctx context.Context, shutdown func()) error

StartContext запускает терминальный интерфейс

func (*Transport) WithPhoneNumber

func (t *Transport) WithPhoneNumber(v string) *Transport

WithPhoneNumber устанавливает номер телефона для авторизации

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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