config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const FilePath = "./config.yml"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Server     Server             `yaml:"server"`
	DataSource []DataSource       `yaml:"datasource"`
	SSH        SSH                `yaml:"ssh"`
	Iris       iris.Configuration `yaml:"iris"`
}

func Load

func Load() *Config

type DataSource

type DataSource struct {
	Type     string          `yaml:"type"`
	URL      string          `yaml:"url"`
	Database string          `yaml:"database"`
	Tag      string          `yaml:"tag"`
	Username string          `yaml:"username"`
	Password string          `yaml:"password"`
	UseSSH   bool            `yaml:"use_ssh"`
	LogLevel logger.LogLevel `yaml:"log_level"`
}

type SSH

type SSH struct {
	IP       string `yaml:"ip"`
	Username string `yaml:"username"`
	Password string `yaml:"password"`
}

type Server

type Server struct {
	Port string `yaml:"port"`
}

Jump to

Keyboard shortcuts

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