helpers

package
v0.0.0-...-9bfc92b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Confpathflag string

flags

View Source
var Swaggerpathflag string

Functions

func InitFile

func InitFile()

func ReadConfig

func ReadConfig()

Types

type Cfg

type Cfg struct {
	ConfPath  string
	Userdb    string   `yaml:"userdb"`
	Passdb    string   `yaml:"passdb"`
	Ipdb      string   `yaml:"ipdb"`
	Portdb    string   `yaml:"portdb"`
	Namedb    string   `yaml:"namedb"`
	Extradb   string   `yaml:"extradb"`
	PortApi   string   `yaml:"portapi"`
	Loglevel  int      `yaml:"loglevel"`
	Usersapi  []string `yaml:"usersapi"`
	Tokensapi []string `yaml:"tokensapi"`
	Specimen  bool     `yaml:"specimen"`
	Nameapi   string   `yaml:"nameapi"`
	Country   string   `yaml:"country"`
}
var AppConfig Cfg

func TheAppConfig

func TheAppConfig() *Cfg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL