39 lines
799 B
Go
39 lines
799 B
Go
/*
|
|
* 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/config"
|
|
"github.com/redis/go-redis/v9"
|
|
)
|
|
|
|
const VERSION = "0.1.0"
|
|
|
|
// Arguments описывает аргументы командной строки
|
|
type Arguments struct {
|
|
IniPath string
|
|
TagsPath string
|
|
RandomCount uint
|
|
NeedJson bool
|
|
NeedQuiet bool
|
|
Verbose bool
|
|
}
|
|
|
|
var (
|
|
Args Arguments
|
|
Redis *redis.Client
|
|
Config *config.Config
|
|
//TagBlocks []tagfile.TagBlock
|
|
)
|
|
|
|
// Init инициализирует глобальные переменные
|
|
func Init() {
|
|
Config = config.Init()
|
|
//logger.Init(Args.NeedQuiet)
|
|
//Redis = cache.Init(Config.Redis)
|
|
}
|