auth

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service управляет процессом авторизации в Telegram

func New

func New(telegramRepo telegramRepo) *Service

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

func (*Service) Close

func (s *Service) Close() error

Close останавливает сервис

func (*Service) GetClientDone

func (s *Service) GetClientDone() <-chan any

GetClientDone возвращает канал, который будет закрыт после завершения авторизации

func (*Service) GetInputChan

func (s *Service) GetInputChan() chan<- string

GetInputChan возвращает канал для ввода данных

func (*Service) GetStatus

func (s *Service) GetStatus() string

GetStatus возвращает статус авторизации

func (*Service) Start

func (s *Service) Start(ctx context.Context) error

Start запускает процесс авторизации

func (*Service) Subscribe

func (s *Service) Subscribe(notify notify)

Subscribe добавляет подписчика на изменения состояния авторизации

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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