Documentation ¶
Index ¶
- func GetDatabase(uri string) (string, string)
- func ReadConfig(configFileName string)
- func SetPublicUrls() error
- type Auth
- type Certificate
- type Configuration
- type FileSystem
- type FrontendServerInfo
- type License
- type LicenseStatus
- type Localization
- type Logging
- type LsdServerInfo
- type ServerInfo
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDatabase ¶
GetDatabase gets the driver name and connection string corresponding to the input
func SetPublicUrls ¶
func SetPublicUrls() error
SetPublicUrls sets the default publics urls of the 3 servers from the config
Types ¶
type Certificate ¶
type Configuration ¶
type Configuration struct { Certificate Certificate `yaml:"certificate"` Storage Storage `yaml:"storage"` License License `yaml:"license"` LcpServer ServerInfo `yaml:"lcp"` LsdServer LsdServerInfo `yaml:"lsd"` FrontendServer FrontendServerInfo `yaml:"frontend"` LsdNotifyAuth Auth `yaml:"lsd_notify_auth"` LcpUpdateAuth Auth `yaml:"lcp_update_auth"` CMSAccessAuth Auth `yaml:"cms_access_auth"` LicenseStatus LicenseStatus `yaml:"license_status"` Localization Localization `yaml:"localization"` Logging Logging `yaml:"logging"` TestMode bool `yaml:"test_mode"` GoofyMode bool `yaml:"goofy_mode"` Profile string `yaml:"profile,omitempty"` }
var Config Configuration
Config is a global variable which contains the server configuration
type FileSystem ¶
type FrontendServerInfo ¶
type FrontendServerInfo struct { ServerInfo `yaml:",inline"` Directory string `yaml:"directory,omitempty"` ProviderUri string `yaml:"provider_uri"` RightPrint int32 `yaml:"right_print"` RightCopy int32 `yaml:"right_copy"` MasterRepository string `yaml:"master_repository"` EncryptedRepository string `yaml:"encrypted_repository"` }
type LicenseStatus ¶
type Localization ¶
type LsdServerInfo ¶
type LsdServerInfo struct { ServerInfo `yaml:",inline"` LicenseLinkUrl string `yaml:"license_link_url,omitempty"` UserDataUrl string `yaml:"user_data_url,omitempty"` }
type ServerInfo ¶
type ServerInfo struct { Host string `yaml:"host,omitempty"` Port int `yaml:"port,omitempty"` AuthFile string `yaml:"auth_file"` ReadOnly bool `yaml:"readonly,omitempty"` PublicBaseUrl string `yaml:"public_base_url,omitempty"` Database string `yaml:"database,omitempty"` CertDate string `yaml:"cert_date,omitempty"` Resources string `yaml:"resources,omitempty"` }
type Storage ¶
type Storage struct { FileSystem FileSystem `yaml:"filesystem"` AccessId string `yaml:"access_id"` DisableSSL bool `yaml:"disable_ssl"` PathStyle bool `yaml:"path_style"` Mode string `yaml:"mode"` Secret string `yaml:"secret"` Endpoint string `yaml:"endpoint"` Bucket string `yaml:"bucket"` Region string `yaml:"region"` Token string `yaml:"token"` }
Click to show internal directories.
Click to hide internal directories.