config

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AppTitle      string `mapstructure:"appTitle"`
	GinMode       string `mapstructure:"ginMode"`
	Address       string `mapstructure:"address"`
	Port          string `mapstructure:"port"`
	TemplatesPath string `mapstructure:"templatesPath"`
	WebRootPath   string `mapstructure:"webRootPath"`

	Db Db `mapstructure:"db"`

	Info Info `mapstructure:"info"`
}

func LoadConfig

func LoadConfig() (config Config, err error)

type Db

type Db struct {
	Driver string `mapstructure:"driver"`
	Url    string `mapstructure:"url"`
}

type Info added in v0.1.13

type Info struct {
	PrivacyUrl string `mapstructure:"privacyUrl"`
	SrcUrl     string `mapstructure:"srcUrl"`
}

Jump to

Keyboard shortcuts

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