Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
File string
Log Log
Debug Debug
HTTP HTTP
Tracing Tracing
Asset Asset
OIDC OIDC
Phoenix Phoenix
}
Config combines all available configuration parts.
type ExternalApp ¶
type ExternalApp struct {
ID string `json:"id,omitempty"`
Path string `json:"path,omitempty"`
// Config is completely dynamic, because it depends on the extension
Config map[string]interface{} `json:"config,omitempty"`
}
ExternalApp defines an external phoenix app.
{
"name": "hello",
"path": "http://localhost:9105/hello.js",
"config": {
"url": "http://localhost:9105"
}
}
type ExternalAppConfig ¶
type ExternalAppConfig struct {
URL string `json:"url,omitempty"`
}
ExternalAppConfig defines an external phoenix app configuration.
type OIDC ¶
type OIDC struct {
MetadataURL string `json:"metadata_url,omitempty"`
Authority string `json:"authority,omitempty"`
ClientID string `json:"client_id,omitempty"`
ResponseType string `json:"response_type,omitempty"`
Scope string `json:"scope,omitempty"`
}
OIDC defines the available oidc configuration
type Phoenix ¶
type Phoenix struct {
Path string
Config PhoenixConfig
}
Phoenix defines the available phoenix configuration.
type PhoenixConfig ¶
type PhoenixConfig struct {
Server string `json:"server,omitempty"`
Theme string `json:"theme,omitempty"`
Version string `json:"version,omitempty"` // TODO what is version used for?
OpenIDConnect OIDC `json:"openIdConnect,omitempty"`
// TODO add nilasempty when https://go-review.googlesource.com/c/go/+/205897/ is released
Apps []string `json:"apps"`
ExternalApps []ExternalApp `json:"external_apps,omitempty"`
}
PhoenixConfig defines the available phoenix configuration for a dynamically rendered config.json.
Click to show internal directories.
Click to hide internal directories.