Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var LastReadTime time.Time
LastReadTime - время последнего чтения логов
var MapLastErrors = make(map[string]string)
MapLastErrors - хранит предыдущие ошибки
var Ticker *time.Ticker
Ticker - таймер, запускается каждые INTERVAL_SEND_MINUTES (10) минут
Functions ¶
func FindTextWithoutTime ¶
FindTextWithoutTime - убирает время в логе, для этого берём текст после 2 пробела time="2024-11-07 04:30:53.709" level=error msg="GetExtractEgripEgrul INN: 519300250706 Result: map[address: fullName: shortName: state:] Error: 404 Нет данных по данному ИНН: 519300250706" func="TakeMessageAsync()\t" file=" nats.go:194\t" 2024/11/01 04:35:07.872721 [ERROR] syncMessage, contractId: 7802, error: NewBriefCase, initInvoices, error: there is no documents for this contract
func FindURLLoki ¶
FindURLLoki - находит URL ссылку в LOKI на которую можно кликнуть в телеграмме
func Start_period ¶
Start_period - запускает чтение логов всех сервисов за период
Types ¶
This section is empty.