/* * Copyright (c) 2025, Антон Аксенов * This file is part of iptvc project * MIT License: https://git.axenov.dev/IPTV/iptvc/src/branch/master/LICENSE */ package app import ( "axenov/iptv-checker/app/cache" "axenov/iptv-checker/app/config" "axenov/iptv-checker/app/logger" "github.com/redis/go-redis/v9" ) const VERSION = "1.1.1" // Arguments описывает аргументы командной строки type Arguments struct { IniPath string TagsPath string RandomCount uint RepeatCount uint RepeatEverySec uint NeedJson bool NeedQuiet bool Verbose bool } var ( Args Arguments Cache *redis.Client Config *config.Config ) // Init инициализирует конфигурацию и подключение к keydb func Init() { Config = config.Init() logger.Init(Args.NeedQuiet) if Config.Cache.IsEnabled { Cache = cache.Init(&Config.Cache) } }