config

package
v0.0.0-...-fe06dec Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ENV_PREFIX = "CLOUD_CONNECTOR"

	URL_APP_NAME                                 = "URL_App_Name"
	URL_PATH_PREFIX                              = "URL_Path_Prefix"
	URL_BASE_PATH                                = "URL_Base_Path"
	OPENAPI_SPEC_FILE_PATH                       = "OpenAPI_Spec_File_Path"
	HTTP_SHUTDOWN_TIMEOUT                        = "HTTP_Shutdown_Timeout"
	SERVICE_TO_SERVICE_CREDENTIALS               = "Service_To_Service_Credentials"
	PROFILE                                      = "Enable_Profile"
	MQTT_BROKER_ADDRESS                          = "MQTT_Broker_Address"
	MQTT_BROKER_ADDRESS_DEFAULT                  = "ssl://localhost:8883"
	MQTT_CLIENT_ID                               = "MQTT_Client_Id"
	MQTT_USE_HOSTNAME_AS_CLIENT_ID               = "MQTT_Use_Hostname_As_Client_Id"
	MQTT_CLEAN_SESSION                           = "MQTT_Clean_Session"
	MQTT_RESUME_SUBS                             = "MQTT_Resume_Subs"
	MQTT_BROKER_TLS_CERT_FILE                    = "MQTT_Broker_Tls_Cert_File"
	MQTT_BROKER_TLS_KEY_FILE                     = "MQTT_Broker_Tls_Key_File"
	MQTT_BROKER_TLS_CA_CERT_FILE                 = "MQTT_Broker_Tls_CA_Cert_File"
	MQTT_BROKER_TLS_SKIP_VERIFY                  = "MQTT_Broker_Tls_Skip_Verify"
	MQTT_BROKER_JWT_GENERATOR_IMPL               = "MQTT_Broker_JWT_Generator_Impl"
	MQTT_BROKER_JWT_FILE                         = "MQTT_Broker_JWT_File"
	MQTT_TOPIC_PREFIX                            = "MQTT_Topic_Prefix"
	MQTT_CONTROL_SUBSCRIPTION_QOS                = "MQTT_Control_Subscription_QoS"
	MQTT_CONTROL_PUBLISH_QOS                     = "MQTT_Control_Publish_QoS"
	MQTT_DATA_SUBSCRIPTION_QOS                   = "MQTT_Data_Subscription_QoS"
	MQTT_DATA_PUBLISH_QOS                        = "MQTT_Data_Publish_QoS"
	MQTT_DISCONNECT_QUIESCE_TIME                 = "MQTT_Disconnect_Quiesce_Time"
	MQTT_PUBLISH_TIMEOUT                         = "MQTT_Publish_Timeout"
	MQTT_CONSUMER_SHUTDOWN_SLEEP_TIME            = "MQTT_Consumer_Shutdown_Sleep_Time"
	SHUTDOWN_ON_MQTT_CONNECTION_LOST             = "Shutdown_On_MQTT_Connection_Lost"
	INVALID_HANDSHAKE_RECONNECT_DELAY            = "Invalid_Handshake_Reconnect_Delay"
	CLIENT_ID_TO_ACCOUNT_ID_IMPL                 = "Client_Id_To_Account_Id_Impl"
	CLIENT_ID_TO_ACCOUNT_ID_CONFIG_FILE          = "Client_Id_To_Account_Id_Config_File"
	CLIENT_ID_TO_ACCOUNT_ID_DEFAULT_ACCOUNT_ID   = "Client_Id_To_Account_Id_Default_Account_Id"
	CLIENT_ID_TO_ACCOUNT_ID_DEFAULT_ORG_ID       = "Client_Id_To_Account_Id_Default_Org_Id"
	CLIENT_ID_TO_ACCOUNT_ID_CACHE_SIZE           = "Client_Id_To_Account_Id_Cache_Size"
	CLIENT_ID_TO_ACCOUNT_ID_CACHE_VALID_RESP_TTL = "Client_Id_To_Account_Id_Cache_Valid_Response_TTL"
	CLIENT_ID_TO_ACCOUNT_ID_CACHE_ERROR_RESP_TTL = "Client_Id_To_Account_Id_Cache_Error_Response_TTL"
	CONNECTION_DATABASE_IMPL                     = "Connection_Database_Impl"
	CONNECTION_DATABASE_HOST                     = "Connection_Database_Host"
	CONNECTION_DATABASE_PORT                     = "Connection_Database_Port"
	CONNECTION_DATABASE_USER                     = "Connection_Database_User"
	CONNECTION_DATABASE_PASSWORD                 = "Connection_Database_Password"
	CONNECTION_DATABASE_NAME                     = "Connection_Database_Name"
	CONNECTION_DATABASE_SSL_MODE                 = "Connection_Database_SSL_Mode"
	CONNECTION_DATABASE_SSL_ROOT_CERT            = "Connection_Database_SSL_Root_Cert"
	CONNECTION_DATABASE_QUERY_TIMEOUT            = "Connection_Database_Query_Timeout"
	AUTH_GATEWAY_URL                             = "Auth_Gateway_Url"
	AUTH_GATEWAY_HTTP_CLIENT_TIMEOUT             = "Auth_Gateway_HTTP_Client_Timeout"
	DEFAULT_KAFKA_BROKER_ADDRESS                 = "kafka:29092"
	KAFKA_CA                                     = "Kafka_CA"
	KAFKA_USERNAME                               = "Kafka_Username"
	KAFKA_PASSWORD                               = "Kafka_Password"
	KAFKA_SASL_MECHANISM                         = "Kafka_SASL_Mechanism"
	CONNECTED_CLIENT_RECORDER_IMPL               = "Connected_Client_Recorder_Impl"
	INVENTORY_KAFKA_BROKERS                      = "Inventory_Kafka_Brokers"
	INVENTORY_KAFKA_TOPIC                        = "Inventory_Kafka_Topic"
	INVENTORY_KAFKA_BATCH_SIZE                   = "Inventory_Kafka_Batch_Size"
	INVENTORY_KAFKA_BATCH_BYTES                  = "Inventory_Kafka_Batch_Bytes"
	INVENTORY_STALE_TIMESTAMP_OFFSET             = "Inventory_Stale_Timestamp_Offset"
	INVENTORY_STALE_TIMESTAMP_UPDATER_CHUNK_SIZE = "Inventory_Stale_Timestamp_Updater_Chunk_Size"
	INVENTORY_REPORTER_NAME                      = "Inventory_Reporter_Name"
	SOURCES_RECORDER_IMPL                        = "Sources_Recorder_Impl"
	SOURCES_BASE_URL                             = "Sources_Base_Url"
	SOURCES_HTTP_CLIENT_TIMEOUT                  = "Sources_HTTP_Client_Timeout"
	JWT_TOKEN_EXPIRY                             = "JWT_Token_Expiry_Minutes"
	JWT_PRIVATE_KEY_FILE                         = "JWT_Private_Key_File"
	JWT_PUBLIC_KEY_FILE                          = "JWT_Public_Key_File"
	RHC_MESSAGE_KAFKA_BROKERS                    = "RHC_Message_Kafka_Brokers"
	RHC_MESSAGE_KAFKA_TOPIC                      = "RHC_Message_Kafka_Topic"
	RHC_MESSAGE_KAFKA_TOPIC_DEFAULT              = "platform.cloud-connector.rhc-message-ingress"
	RHC_MESSAGE_KAFKA_BATCH_SIZE                 = "RHC_Message_Kafka_Batch_Size"
	RHC_MESSAGE_KAFKA_BATCH_BYTES                = "RHC_Message_Kafka_Batch_Bytes"
	RHC_MESSAGE_KAFKA_CONSUMER_GROUP             = "RHC_Message_Kafka_Consumer_Group"
	PENDO_API_ENDPOINT                           = "Pendo_Api_Endpoint"
	PENDO_REQUEST_TIMEOUT                        = "Pendo_Request_Timeout"
	PENDO_INTEGRATION_KEY                        = "Pendo_Integration_Key"
	PENDO_REQUEST_SIZE                           = "Pendo_Request_Size"
	PROMETHEUS_PUSH_GATEWAY                      = "Prometheus_Push_Gateway"
	API_SERVER_CONNECTION_LOOKUP_IMPL            = "API_Server_Connection_Lookup_Impl"
	TENANT_TRANSLATOR_IMPL                       = "Tenant_Translator_Impl"
	TENANT_TRANSLATOR_MOCK_MAPPING               = "Tenant_Translator_Mock_Mapping"
	TENANT_TRANSLATOR_URL                        = "Tenant_Translator_URL"
	TENANT_TRANSLATOR_TIMEOUT                    = "Tenant_Translator_Timeout"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	UrlAppName                              string
	UrlPathPrefix                           string
	UrlBasePath                             string
	OpenApiSpecFilePath                     string
	HttpShutdownTimeout                     time.Duration
	ServiceToServiceCredentials             map[string]interface{}
	Profile                                 bool
	MqttBrokerAddress                       string
	MqttClientId                            string
	MqttUseHostnameAsClientId               bool
	MqttCleanSession                        bool
	MqttResumeSubs                          bool
	MqttBrokerTlsCertFile                   string
	MqttBrokerTlsKeyFile                    string
	MqttBrokerTlsCACertFile                 string
	MqttBrokerTlsSkipVerify                 bool
	MqttBrokerJwtGeneratorImpl              string
	MqttBrokerJwtFile                       string
	MqttTopicPrefix                         string
	MqttControlSubscriptionQoS              byte
	MqttControlPublishQoS                   byte
	MqttDataSubscriptionQoS                 byte
	MqttDataPublishQoS                      byte
	MqttDisconnectQuiesceTime               uint
	MqttPublishTimeout                      time.Duration
	MqttConsumerShutdownSleepTime           time.Duration
	ShutdownOnMqttConnectionLost            bool
	InvalidHandshakeReconnectDelay          int
	KafkaBrokers                            []string
	KafkaCA                                 string
	KafkaUsername                           string
	KafkaPassword                           string
	KafkaSASLMechanism                      string
	ClientIdToAccountIdImpl                 string
	ClientIdToAccountIdConfigFile           string
	ClientIdToAccountIdDefaultAccountId     string
	ClientIdToAccountIdDefaultOrgId         string
	ClientIdToAccountIdCacheSize            int
	ClientIdToAccountIdCacheValidRespTTL    time.Duration
	ClientIdToAccountIdCacheErrorRespTTL    time.Duration
	ConnectionDatabaseImpl                  string
	ConnectionDatabaseHost                  string
	ConnectionDatabasePort                  int
	ConnectionDatabaseUser                  string
	ConnectionDatabasePassword              string
	ConnectionDatabaseName                  string
	ConnectionDatabaseSslMode               string
	ConnectionDatabaseSslRootCert           string
	ConnectionDatabaseQueryTimeout          time.Duration
	AuthGatewayUrl                          string
	AuthGatewayHttpClientTimeout            time.Duration
	ConnectedClientRecorderImpl             string
	InventoryKafkaBrokers                   []string
	InventoryKafkaTopic                     string
	InventoryKafkaBatchSize                 int
	InventoryKafkaBatchBytes                int
	InventoryStaleTimestampOffset           time.Duration
	InventoryStaleTimestampUpdaterChunkSize int
	InventoryReporterName                   string
	SourcesRecorderImpl                     string
	SourcesBaseUrl                          string
	SourcesHttpClientTimeout                time.Duration
	JwtTokenExpiry                          int
	JwtPrivateKeyFile                       string
	JwtPublicKeyFile                        string
	RhcMessageKafkaBrokers                  []string
	RhcMessageKafkaTopic                    string
	RhcMessageKafkaBatchSize                int
	RhcMessageKafkaBatchBytes               int
	RhcMessageKafkaConsumerGroup            string
	PendoApiEndpoint                        string
	PendoRequestTimeout                     time.Duration
	PendoIntegrationKey                     string
	PendoRequestSize                        int
	PrometheusPushGateway                   string
	ApiServerConnectionLookupImpl           string
	TenantTranslatorImpl                    string
	TenantTranslatorMockMapping             map[string]interface{}
	TenantTranslatorURL                     string
	TenantTranslatorTimeout                 time.Duration
}

func GetConfig

func GetConfig() *Config

func (Config) String

func (c Config) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL