Documentation ¶
Index ¶
- type Bases
- type Settings
- func (s *Settings) GetDBCredentials(ctx context.Context, cForce chan struct{})
- func (s *Settings) GetExplorers() map[string]map[string]interface{}
- func (s *Settings) GetLogPass(ibname string) (login, pass string)
- func (s *Settings) GetProperty(explorerName string, propertyName string, defaultValue interface{}) interface{}
- func (s *Settings) RAC_Host() string
- func (s *Settings) RAC_Login() string
- func (s *Settings) RAC_Pass() string
- func (s *Settings) RAC_Path() string
- func (s *Settings) RAC_Port() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Settings ¶
type Settings struct { LogDir string `yaml:"LogDir"` SettingsPath string Explorers []*struct { Property map[string]interface{} `yaml:"Property"` Name string `yaml:"Name"` } `yaml:"Explorers"` DBCredentials *struct { URL string `yaml:"URL" json:"URL,omitempty"` User string `yaml:"User" json:"user,omitempty"` Password string `yaml:"Password" json:"password,omitempty"` TLSSkipVerify bool `yaml:"TLSSkipVerify" json:"TLSSkipVerify,omitempty"` } `yaml:"DBCredentials"` RAC *struct { Path string `yaml:"Path"` Port string `yaml:"Port"` Host string `yaml:"Host"` Login string `yaml:"Login"` Pass string `yaml:"Pass"` } `yaml:"RAC"` LogLevel int `yaml:"LogLevel" default:"4"` // Уровень логирования от 2 до 6, где 2 - ошибка, 3 - предупреждение, 4 - информация, 5 - дебаг, 6 - трейс // contains filtered or unexported fields }
func LoadSettings ¶
func (*Settings) GetDBCredentials ¶
func (*Settings) GetExplorers ¶
func (*Settings) GetLogPass ¶
func (*Settings) GetProperty ¶
Click to show internal directories.
Click to hide internal directories.