setting

package
v0.0.0-...-1fbbad1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2016 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CONFIG_FILE = "config/app.ini"
	CUSTOM_PATH = "custom/"
)

Variables

View Source
var (
	EnableGzip  bool
	InstallLock bool

	Session struct {
		Name  string
		Key   string
		Store string
	}

	Host struct {
		Path string
		Addr string
		Port string
	}

	API struct {
		UploadFolder       string
		FilesPath          string
		UploadMaxSize      int
		UploadExtensions   []string
		UploadContentTypes []string
	}

	DbCfg struct {
		Type    string
		Host    string
		Name    string
		User    string
		Passwd  string
		SSLMode string
		Path    string
	}

	// Global setting objects
	INSTALLER_URL = path.Join(Host.Path, "/goant/install")
	CustomConf    string
)

Functions

func NewContext

func NewContext()

Types

This section is empty.

Jump to

Keyboard shortcuts

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