auth

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: 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, loaderService loaderService) *Service

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

func (*Service) Close

func (s *Service) Close() error

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

func (*Service) GetInputChan

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

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

func (*Service) GetStatus

func (s *Service) GetStatus() string

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

func (*Service) StartContext added in v0.0.2

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

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

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