config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const RootPathMark = "$(root)"

RootPathMark this char represent executable dir

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Application struct {
		Port int `yaml:"port"`
	} `yaml:"application"`
	Logger struct {
		Level string `yaml:"level"`
		Path  string `yaml:"path"`
	} `yaml:"logger"`
	Database struct {
		Type string `yaml:"type"`
		File string `yaml:"file"`
	} `yaml:"database"`
	Runtime struct {
		DefaultUser string `yaml:"default_user"`
	} `yaml:"runtime"`
}

func LoadDefaultConfig

func LoadDefaultConfig() Config

Jump to

Keyboard shortcuts

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