mirror of
https://github.com/SigNoz/signoz.git
synced 2026-03-12 08:13:19 +00:00
* feat(global): add global config support * feat(global): revert factory name changes * feat(global): add global config support
16 lines
360 B
Go
16 lines
360 B
Go
package types
|
|
|
|
import "net/url"
|
|
|
|
type GettableGlobalConfig struct {
|
|
ExternalURL string `json:"external_url"`
|
|
IngestionURL string `json:"ingestion_url"`
|
|
}
|
|
|
|
func NewGettableGlobalConfig(externalURL, ingestionURL *url.URL) *GettableGlobalConfig {
|
|
return &GettableGlobalConfig{
|
|
ExternalURL: externalURL.String(),
|
|
IngestionURL: ingestionURL.String(),
|
|
}
|
|
}
|