system

package
v0.0.0-...-9f9746c Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: MIT Imports: 2 Imported by: 18

Documentation

Index

Constants

View Source
const (
	DEFAULT_PAGESIZE = 10
)

Variables

This section is empty.

Functions

func LoadConfiguration

func LoadConfiguration(path string) error

Types

type Configuration

type Configuration struct {
	SignupEnabled      bool   `yaml:"signup_enabled"`  // signup enabled or not
	QiniuAccessKey     string `yaml:"qiniu_accesskey"` // qiniu
	QiniuSecretKey     string `yaml:"qiniu_secretkey"`
	QiniuFileServer    string `yaml:"qiniu_fileserver"`
	QiniuBucket        string `yaml:"qiniu_bucket"`
	GithubClientId     string `yaml:"github_clientid"` // github
	GithubClientSecret string `yaml:"github_clientsecret"`
	GithubAuthUrl      string `yaml:"github_authurl"`
	GithubRedirectURL  string `yaml:"github_redirecturl"`
	GithubTokenUrl     string `yaml:"github_tokenurl"`
	GithubScope        string `yaml:"github_scope"`
	SmtpUsername       string `yaml:"smtp_username"`  // username
	SmtpPassword       string `yaml:"smtp_password"`  //password
	SmtpHost           string `yaml:"smtp_host"`      //host
	SessionSecret      string `yaml:"session_secret"` //session_secret
	Domain             string `yaml:"domain"`         //domain
	Public             string `yaml:"public"`         //public
	Addr               string `yaml:"addr"`           //addr
	BackupKey          string `yaml:"backup_key"`     //backup_key
	DSN                string `yaml:"dsn"`            //database dsn
	NotifyEmails       string `yaml:"notify_emails"`  //notify_emails
	PageSize           int    `yaml:"page_size"`      //page_size
	SmmsFileServer     string `yaml:"smms_fileserver"`
}

func GetConfiguration

func GetConfiguration() *Configuration

Jump to

Keyboard shortcuts

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