setting

package
v0.0.0-...-9022b49 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// App settings.
	AppVer  string
	AppName string

	// Server settings.
	HttpPort      int
	ArchivePath   string
	MaxUploadSize int64

	// Security settings.
	SecretKey          = "!#@FDEWREWR&*("
	LogInRememberDays  = 7
	CookieUserName     = "gopm_awesome"
	CookieRememberName = "gopm_incredible"

	// Admin settings.
	AccessToken string

	// Global setting objects.
	Cfg           *ini.File
	ProdMode      bool
	RootPathPairs = map[string]int{
		"github.com":      3,
		"code.google.com": 3,
		"bitbucket.org":   3,
		"git.oschina.net": 3,
		"gitcafe.com":     3,
		"launchpad.net":   2,
		"golang.org":      3,
	}
	ExtensionPairs = map[string]string{
		"github.com/":      ".zip",
		"code.google.com/": ".zip",
		"golang.org/":      ".zip",
		"bitbucket.org/":   ".zip",
		"git.oschina.net/": ".zip",
		"gitcafe.com/":     ".tar",
		"gopkg.in/":        ".zip",
		"launchpad.net/":   ".tar.gz",
	}
	GithubCredentials string
	PageSize          = 30

	// QiNiu settings.
	BucketName string
	BucketUrl  string
)
View Source
var Service struct {
	RegisterEmailConfirm bool
	ActiveCodeLives      int
	ResetPwdCodeLives    int
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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