Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // RootURL gets the URL of the root of the site (e.g., http://localhost/gomp). RootURL string `json:"root_url"` // RootURLPath gets just the path portion of the RootUrl value, // without any trailing slashes. RootURLPath string `json:"-"` // Port gets the port number under which the site is being hosted. Port int `json:"port"` // DataPath gets the path (full or relative) under which to store the database // and other runtime date (e.g., uploaded images). DataPath string `json:"data_path"` // IsDevelopment defines whether to run the application in "development mode". // Development mode turns on additional features, such as logging, that may // not be desirable in a production environment. IsDevelopment bool `json:"is_development"` // SecretKey is used to keep data safe. SecretKey string `json:"secret_key"` // ApplicationTitle is used where the application name (title) is displayed on screen. ApplicationTitle string `json:"application_title"` }
Click to show internal directories.
Click to hide internal directories.