Documentation ¶
Index ¶
- Variables
- func CloseConnection()
- func CloseConnection_err() error
- func Connect()
- func Connect_err() error
- func FillSettings() error
- func GetTimeoutSeconds() int
- func SetTimeoutSeconds(seconds int)
- func Start()
- func Start_ctx(ctx *context.Context, wg *sync.WaitGroup) error
- func WaitStop()
- type SettingsINI
Constants ¶
This section is empty.
Variables ¶
View Source
var Client *investgo.Client
Conn - подключение к серверу GRPC
View Source
var NeedReconnect bool
NeedReconnect - флаг необходимости переподключения
Functions ¶
func CloseConnection ¶
func CloseConnection()
CloseConnection - закрывает подключение к GRPC, и пишет лог
func CloseConnection_err ¶
func CloseConnection_err() error
CloseConnection - закрывает подключение к GRPC, и возвращает ошибку
func Connect_err ¶
func Connect_err() error
Connect_err - подключается к серверу GRPC, возвращает ошибку
func FillSettings ¶
func FillSettings() error
func GetTimeoutSeconds ¶
func GetTimeoutSeconds() int
GetTimeoutSeconds - возвращает время ожидания ответа
func SetTimeoutSeconds ¶
func SetTimeoutSeconds(seconds int)
SetTimeoutSeconds - устанавливает время ожидания ответа
func Start ¶
func Start()
Start - необходимые процедуры для запуска сервера GRPC если контекст хранится в contextmain.GetContext() и есть stopapp.GetWaitGroup_Main() при ошибке вызывает панику
Types ¶
type SettingsINI ¶
SettingsINI - тип для хранения настроек подключени
var Settings SettingsINI
Settings - структура для хранения настроек подключения
Click to show internal directories.
Click to hide internal directories.