setting

package
v0.0.0-...-fb7ad71 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Info

func Info() string

func InstallDir

func InstallDir() (dir string)

func IsPrivateAccount

func IsPrivateAccount(account string) bool

func NewContext

func NewContext() (err error)

func WorkDir

func WorkDir() string

Types

type Properties

type Properties struct {
	// App settings
	AppName   string `json:"app_name"`
	AppVer    string `json:"app_ver"`
	AppURL    string `json:"app_url"`
	AppDomain string `json:"app_domain"`
	AppPath   string `json:"app_path"`
	ProdMode  bool   `json:"prod_mode"`

	// Server settings
	StaticRootPath string `json:"static_root_path"`
	HTTPAddr       string `json:"http_addr"`
	HTTPPort       string `json:"http_port"`
	Protocol       string `json:"protocol"`

	// Database settings
	DatabaseType string `json:"database_type"`
	DatabasePath string `json:"database_path"`

	// Global setting objects
	CfgFilePath string `json:"cfg_file_path"`

	// Mail settings
	MailPort        string   `json:"mail_port"`
	PrivateAccounts []string `json:"private_accounts"`
}
var (
	Config Properties

	// Session settings
	SessionConfig session.Options
)

Jump to

Keyboard shortcuts

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