conf

package
v1.0.4-0...-d8282c0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2025 License: MulanPSL-2.0 Imports: 9 Imported by: 0

Documentation

Overview

* Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. * PilotGo-plugin-topology licensed under the Mulan Permissive Software License, Version 2. * See LICENSE file for more details. * Author: Wangjunqi123 <wangjunqi@kylinos.cn> * Date: Mon Nov 4 14:30:13 2024 +0800

* Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. * PilotGo-plugin-topology licensed under the Mulan Permissive Software License, Version 2. * See LICENSE file for more details. * Author: Wangjunqi123 <wangjunqi@kylinos.cn> * Date: Mon Nov 4 14:30:13 2024 +0800

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigFile

func ConfigFile() string

func InitConfig

func InitConfig()

Types

type ArangodbConf

type ArangodbConf struct {
	Addr     string `yaml:"addr"`
	Database string `yaml:"database"`
}

type InfluxConf

type InfluxConf struct {
	Addr   string `yaml:"addr"`
	Token  string `yaml:"token"`
	Org    string `yaml:"org"`
	Bucket string `yaml:"bucket"`
}

type MysqlConf

type MysqlConf struct {
	Addr     string `yaml:"addr"`
	Username string `yaml:"username"`
	Password string `yaml:"password"`
	DB       string `yaml:"DB"`
}

type Neo4jConf

type Neo4jConf struct {
	Addr      string `yaml:"addr"`
	Username  string `yaml:"username"`
	Password  string `yaml:"password"`
	DB        string `yaml:"DB"`
	Period    int64  `yaml:"period"`
	Retention int64  `yaml:"retention"`
	Cleartime string `yaml:"cleartime"`
}

type PrometheusConf

type PrometheusConf struct {
	Addr string `yaml:"addr"`
}

type RedisConf

type RedisConf struct {
	Addr        string        `yaml:"addr"`
	UseTLS      bool          `yaml:"use_tls"`
	Password    string        `yaml:"password"`
	DB          int           `yaml:"DB"`
	DialTimeout time.Duration `yaml:"dialTimeout"`
}

type ServerConfig

type ServerConfig struct {
	Topo       *TopoConf
	Logopts    *logger.LogOpts `yaml:"log"`
	Arangodb   *ArangodbConf
	Neo4j      *Neo4jConf
	Prometheus *PrometheusConf
	Redis      *RedisConf
	Mysql      *MysqlConf
	Influx     *InfluxConf
}
var Global_Config *ServerConfig

type TopoConf

type TopoConf struct {
	Https_enabled      bool   `yaml:"https_enabled"`
	Public_certificate string `yaml:"cert_file"`
	Private_key        string `yaml:"key_file"`
	Addr               string `yaml:"server_listen_addr"`
	Addr_target        string `yaml:"server_target_addr"`
	Agent_port         string `yaml:"agent_port"`
	GraphDB            string `yaml:"graphDB"`
	Path               string `yaml:"path"`
}

Jump to

Keyboard shortcuts

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