config

package
v0.0.0-...-41184b9 Latest Latest
Warning

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

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

Documentation

Overview

Package config provides the configuration loading

Package config provides the configuration loading

Package config provides the configuration loading

Package config provides the configuration loading

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultConfigPath

func DefaultConfigPath() string

DefaultConfigPath return the default config path file

Types

type Config

type Config struct {
	IDB        config.IDB            `yaml:"influxdb"`
	RDB        config.RDB            `yaml:"redis"`
	Balancer   config.BalancerConfig `yaml:"balancer"`
	Monitoring *MonitoringConfig     `yaml:"monitoring"`
}

Config is the global application config

func Load

func Load(path string) (*Config, error)

Load configuration for the given path

type MonitoringConfig

type MonitoringConfig struct {
	Auth *string `yaml:"auth"`
	Port Port    `yaml:"port"`
}

MonitoringConfig is the global monitoring application config

type Port

type Port int

Port is the monitoring application port

Jump to

Keyboard shortcuts

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