conf

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Types

type AppConf

type AppConf struct {
	Port  int     `mapstructure:"port"`
	Debug bool    `mapstructure:"debug"`
	Url   string  `mapstructure:"url"`
	Limit float64 `mapstructure:"limit"`
	Photo *Photo  `mapstructure:"photo"`
	Path  *Path   `mapstructure:"path"`
	Auth  *Auth   `mapstructure:"auth"`
	Mysql *Mysql  `mapstructure:"mysql"`
}
var App *AppConf

type Auth

type Auth struct {
	ClientID     string `mapstructure:"client_id"`
	ClientSecret string `mapstructure:"client_secret"`
	RedirectUrl  string `mapstructure:"redirect_url"`
}

type Mysql

type Mysql struct {
	Host     string `mapstructure:"host"`
	Port     int    `mapstructure:"port"`
	User     string `mapstructure:"user"`
	Password string `mapstructure:"password"`
	Database string `mapstructure:"database"`
}

type Path

type Path struct {
	Photo string `mapstructure:"photo"`
	Temp  string `mapstructure:"temp"`
}

type Photo

type Photo struct {
	Min  int64    `mapstructure:"min"`
	Max  int64    `mapstructure:"max"`
	MIME []string `mapstructure:"mime"`
}

Directories

Path Synopsis
e

Jump to

Keyboard shortcuts

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