config

package
v0.0.0-...-5dae62c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Db *gorm.DB

Functions

func ReadYamlConfig

func ReadYamlConfig(path string, config *Config) error

func Setup

func Setup()

Types

type Config

type Config struct {
	DbConfig        Database  `yaml:"mysql"`
	FilePathsConfig FilePaths `yaml:"file"`
}

type Database

type Database struct {
	Name     string `yaml:"name"`
	Host     string `yaml:"host"`
	Port     string `yaml:"port"`
	Username string `yaml:"username"`
	Password string `yaml:"password"`
}

type FilePaths

type FilePaths struct {
	Paths []string `yaml:"path"`
}
var FPaths FilePaths

Jump to

Keyboard shortcuts

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