config

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

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

Variables

View Source
var ConfigMap = make(map[string]interface{})

Functions

func ReadConfig added in v1.0.3

func ReadConfig(name string, config interface{}) bool

Types

type Config

type Config struct {
	Server  Server             `json:"server" yaml:"server"`
	Iris    iris.Configuration `json:"iris" yaml:"iris"`
	Logging Logging            `json:"logging" yaml:"logging"`
}

type Logging added in v1.0.6

type Logging struct {
	Level string `yaml:"level"`
}

type Server

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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