conf

package
v0.0.0-...-cd52cd5 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Key      string `json:"key"`
	UserName string `json:"username"`
	Password string `json:"password"`
}

type Config

type Config struct {
	Db              Db                         `json:"db"`
	Server          Server                     `json:"server"`
	App             App                        `json:"app"`
	Upload          UploadConfig               `json:"upload"`
	TranslateConfig map[string]TranslateConfig `json:"translate"`
}
var Conf Config

type Db

type Db struct {
	Host     string `json:"host"`
	DbName   string `json:"dbname"`
	Username string `json:"username"`
	Password string `json:"password"`
}

type QiNiuConfig

type QiNiuConfig struct {
	Id       string `json:"id"`
	Key      string `json:"key"`
	Bucket   string `json:"bucket"`
	Callback string `json:"callback"`
}

type Server

type Server struct {
	Port int `json:"port"`
}

type TranslateConfig

type TranslateConfig struct {
	Id  string `json:"id"`
	Key string `json:"key"`
}

type TypeConfig

type TypeConfig struct {
	Prefix string   `json:"prefix"`
	Allow  []string `json:"allow"`
	Size   int64    `json:"size"`
}

type UploadConfig

type UploadConfig struct {
	QiNiu QiNiuConfig           `json:"qiniu"`
	Types map[string]TypeConfig `json:"types"`
}

Jump to

Keyboard shortcuts

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