util

package
v0.0.0-...-08a7c71 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfig

func InitConfig() bool

Types

type Config

type Config struct {
	Db   DatabaseConfig `mapstructure:"database"`
	Path PathConfig     `mapstructure:"paths"`
	Http HttpConfig     `mapstructure:"http"`
}
var AllConfig Config

type DatabaseConfig

type DatabaseConfig struct {
	Host     string
	Port     int
	User     string
	Password string
	Database string
}

type HttpConfig

type HttpConfig struct {
	Secret string
}

type PathConfig

type PathConfig struct {
	Prefix string
	Sites  string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳