mirror of
https://github.com/andwati/telecom-platform.git
synced 2026-10-31 00:52:16 +00:00
- Add ES2Config struct with base URL, API key, TLS verification, and requester ID fields - Add LoadES2Config function with default SMDP connection parameters - Include JSON tags for configuration serialization
18 lines
487 B
Go
18 lines
487 B
Go
package config
|
|
|
|
type ES2Config struct {
|
|
BaseURL string `json:"base_url"`
|
|
APIKey string `json:"api_key"`
|
|
InsecureSkipVerify bool `json:"insecure_skip_verify"`
|
|
FunctionalityRequesterID string `json:"functionality_requester_id"`
|
|
}
|
|
|
|
func LoadES2Config() *ES2Config {
|
|
return &ES2Config{
|
|
BaseURL: "https://smdp.example.com",
|
|
APIKey: "",
|
|
InsecureSkipVerify: true,
|
|
FunctionalityRequesterID: "telecom-platform",
|
|
}
|
|
}
|