serverSettings

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2022 License: MIT Imports: 6 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

View Source
var APP_LOCATION string
View Source
var SWAGGER_UI_PATH string
View Source
var WebConfigMutex sync.RWMutex

Functions

func Init added in v1.4.4

func Init()

func InitCustomWebConfig added in v1.4.4

func InitCustomWebConfig(webConfig string)

func InitPath added in v1.4.4

func InitPath(path string)

func Initialize

func Initialize(path string, configurationFile string) (err error)

Types

type Application

type Application struct {
	Name                     string        `json:"name"`
	Domain                   string        `json:"domain"`
	ServerFQDN               string        `json:"serverFQDN"`
	VersionNumeric           int           `json:"versionNumeric"`
	VersionDot               string        `json:"versionDot"`
	ProductName              string        `json:"productName"`
	HttpPort                 int           `json:"httpPort"`
	HttpsPort                int           `json:"httpsPort"`
	CookieDomain             string        `json:"cookieDomain"`
	ReleaseMode              string        `json:"releaseMode"`
	WebServiceOnly           bool          `json:"webServiceOnly"`
	MountGitWebHooks         bool          `json:"mountGitWebHooks"`
	GitWebHookSecretKey      string        `json:"gitWebHookSecretKey"`
	GitWebHookPort           string        `json:"gitWebHookServerPort"`
	GitWebHookPath           string        `json:"gitWebHookPath"`
	Info                     Info          `json:"info"`
	HtmlTemplates            HtmlTemplates `json:"htmlTemplates"`
	RootIndexPath            string        `json:"rootIndexPath"`
	DisableRootIndex         bool          `json:"disableRootIndex"`
	CustomGinLogger          bool          `json:"customGinLogger"`
	SessionKey               string        `json:"sessionKey"`
	SessionName              string        `json:"sessionName"`
	SessionExpirationDays    int           `json:"sessionExpirationDays"`
	SessionSecureCookie      bool          `json:"sessionSecureCookie"`
	CSRFSecret               string        `json:"csrfSecret"`
	BootstrapData            bool          `json:"bootstrapData"`
	LogQueries               bool          `json:"logQueries"`
	LogQueryStackTraces      bool          `json:"logQueryStackTraces"`
	LogJoinQueries           bool          `json:"logJoinQueries"`
	LogQueryTimes            bool          `json:"logQueryTimes"`
	LogGophers               bool          `json:"logGophers"`
	CoreDebugStackTrace      bool          `json:"coreDebugStackTrace"`
	AllowCrossOriginRequests bool          `json:"allowCrossOriginRequests"`
}

type Contact added in v1.4.4

type Contact struct {
	Name  string `json:"name"`
	URL   string `json:"url"`
	Email string `json:"email"`
}

type DbConnection added in v1.4.4

type DbConnection struct {
	ConnectionString    string `json:"connectionString"`
	EnableTLS           bool   `json:"enableTLS"`
	Driver              string `json:"driver"`
	Database            string `json:"database"`
	AuthServer          bool   `json:"authServer"`
	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"`
}

type HtmlTemplates added in v1.4.4

type HtmlTemplates struct {
	Enabled         bool   `json:"enabled"`
	Directory       string `json:"directory"`
	DirectoryLevels int    `json:"directoryLevels"`
}

type Info added in v1.4.4

type Info struct {
	Title          string  `json:"title"`
	Description    string  `json:"description"`
	Contact        Contact `json:"contact"`
	License        License `json:"license"`
	TermsOfService string  `json:"termsOfService"`
}

type License added in v1.4.4

type License struct {
	Name string `json:"name"`
	URL  string `json:"url"`
}

type WebConfigType added in v1.4.4

type WebConfigType struct {
	DbConnections []DbConnection `json:"dbConnections"`
	Application   Application    `json:"application"`
	DbConnection  DbConnection
}
var WebConfig WebConfigType

Jump to

Keyboard shortcuts

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