settings

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package settings provides settings for go files to reference paths and other constants to know where files are located.

Index

Constants

This section is empty.

Variables

View Source
var AppSettings appSettings
View Source
var AppSettingsSync sync.RWMutex
View Source
var Environment string
View Source
var ProductName string
View Source
var Version string
View Source
var WebRoot string
View Source
var WebUI string

Functions

func Initialize

func Initialize()

Types

type FullWebConfig

type FullWebConfig struct {
	Application struct {
		Domain                      string `json:"domain"`
		HTTPPort                    int    `json:"httpPort"`
		HTTPSPort                   int    `json:"httpsPort"`
		ReleaseMode                 string `json:"releaseMode"`
		WebServiceOnly              bool   `json:"webServiceOnly"`
		DisableRootIndex            bool   `json:"disableRootIndex"`
		SessionKey                  string `json:"sessionKey"`
		SessionName                 string `json:"sessionName"`
		SessionExpirationDays       int    `json:"sessionExpirationDays"`
		SessionSecureCookie         bool   `json:"sessionSecureCookie"`
		CsrfSecret                  string `json:"csrfSecret"`
		VersionNumeric              int    `json:"versionNumeric"`
		VersionDot                  string `json:"versionDot"`
		ProductName                 string `json:"productName"`
		BootstrapData               bool   `json:"bootstrapData"`
		LogQueries                  bool   `json:"logQueries"`
		LogQueryStackTraces         bool   `json:"logQueryStackTraces"`
		LogJoinQueries              bool   `json:"logJoinQueries"`
		LogQueryTimes               bool   `json:"logQueryTimes"`
		FlushCoreDebugToStandardOut bool   `json:"flushCoreDebugToStandardOut"`
		CoreDebugStackTrace         bool   `json:"coreDebugStackTrace"`
		Info                        struct {
			Title       string `json:"title"`
			Description string `json:"description"`
			Contact     struct {
				Name  string `json:"name"`
				Email string `json:"email"`
				URL   string `json:"url"`
			} `json:"contact"`
			License struct {
				Name string `json:"name"`
				URL  string `json:"url"`
			} `json:"license"`
			TermsOfService string `json:"termsOfService"`
		} `json:"info"`
		HTMLTemplates struct {
			Enabled         bool   `json:"enabled"`
			Directory       string `json:"directory"`
			DirectoryLevels int    `json:"directoryLevels"`
		} `json:"htmlTemplates"`
	} `json:"application"`
	DbConnections []struct {
		Driver              string `json:"driver"`
		ConnectionString    string `json:"connectionString"`
		Database            string `json:"database"`
		TransactionSizeMax  int    `json:"transactionSizeMax"`
		AuditHistorySizeMax int    `json:"auditHistorySizeMax"`
		Replication         struct {
			Enabled    bool     `json:"enabled"`
			ReplicaSet string   `json:"replicaSet"`
			Master     string   `json:"master"`
			Slaves     []string `json:"slaves"`
		} `json:"replication"`
	} `json:"dbConnections"`
	AppSettings struct {
		DeveloperMode                      bool          `json:"developerMode"`
		DeveloperLogState                  bool          `json:"developerLogState"`
		DeveloperLogStateChangePerformance bool          `json:"developerLogStateChangePerformance"`
		DeveloperLogTheseObjects           []interface{} `json:"developerLogTheseObjects"`
		DeveloperLogReact                  bool          `json:"developerLogReact"`
		IsDemo                             bool          `json:"isDemo"`
	} `json:"appSettings"`
}

Jump to

Keyboard shortcuts

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