This commit is contained in:
38
app/app.go
Normal file
38
app/app.go
Normal file
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* 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)
|
||||
}
|
||||
Reference in New Issue
Block a user