client

package
v0.0.0-...-f6ab580 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LogWriter = os.Stdout
)

Functions

func ReadConfig

func ReadConfig() *configs.RClientConfig

ReadConfig формирует и валидирует конфигурацию приложения

Types

type PollService

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

PollService сервис отвечает за отправку и прием событий с сервера, с остальными компонентами приложения взаимодействует через приемный и передающий каналы

func NewPollService

func NewPollService(
	ctx context.Context,
	sendChan chan model.NotifyEvent,
	receiveChan chan model.ActionEvent,
	config *configs.RClientConfig,
	logger zerolog.Logger,
) *PollService

NewPollService возвращает настроенный сервис обмена событиями

func (*PollService) Polling

func (s *PollService) Polling()

Polling запускает циклическую обработку событий с сервера и отдает события клиента в тот-же поток

Jump to

Keyboard shortcuts

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