Documentation
¶
Index ¶
- func AddAgentVersionToDomain(DDURL string, app string) (string, error)
- func GetInfraEndpoint(c conf.ConfigReader) string
- func GetMainEndpoint(c conf.ConfigReader, prefix string, ddURLKey string) string
- func GetMainEndpointBackwardCompatible(c conf.ConfigReader, prefix string, ddURLKey string, backwardKey string) string
- func GetMultipleEndpoints(c conf.ConfigReader) (map[string][]string, error)
- func SanitizeAPIKey(key string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAgentVersionToDomain ¶
AddAgentVersionToDomain prefixes the domain with the agent version: X-Y-Z.domain
func GetInfraEndpoint ¶
func GetInfraEndpoint(c conf.ConfigReader) string
GetInfraEndpoint returns the main DD Infra URL defined in config, based on the value of `site` and `dd_url`
func GetMainEndpoint ¶
func GetMainEndpoint(c conf.ConfigReader, prefix string, ddURLKey string) string
GetMainEndpoint returns the main DD URL defined in the config, based on `site` and the prefix, or ddURLKey
func GetMainEndpointBackwardCompatible ¶
func GetMainEndpointBackwardCompatible(c conf.ConfigReader, prefix string, ddURLKey string, backwardKey string) string
GetMainEndpointBackwardCompatible implements the logic to extract the DD URL from a config, based on `site`,ddURLKey and a backward compatible key
func GetMultipleEndpoints ¶
func GetMultipleEndpoints(c conf.ConfigReader) (map[string][]string, error)
GetMultipleEndpoints returns the api keys per domain specified in the main agent config
func SanitizeAPIKey ¶
SanitizeAPIKey strips newlines and other control characters from a given string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.