config

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceConfig

type ServiceConfig struct {
	Monitor struct {
		Host     string
		Port     int
		User     string
		Password string
		DBName   string
	}
	Coordinator struct {
		Formation string
		Username  string
		Password  string
		DBName    string
	}
	Settings struct {
		CheckInterval int
		Debug         bool
	}
	API struct {
		Enabled bool
		Port    string
		Secret  string
	}
}
var Config ServiceConfig

func InitConfig

func InitConfig(configPath string) (*ServiceConfig, error)

Jump to

Keyboard shortcuts

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