Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶
loads config from json in location and used environment variables (e.g KafkaUrl --> KAFKA_URL)
Types ¶
type Config ¶
type Config struct {
ShardsDb string `json:"shards_db" config:"secret"` //
CamundaUrl string `json:"camunda_url" config:"secret"` //replaces ShardsDb if set
IoDataSource IoDataSource `json:"io_data_source"`
IoApiUrl string `json:"io_api_url"`
AuthEndpoint string `json:"auth_endpoint"`
AuthClientId string `json:"auth_client_id" config:"secret"`
AuthClientSecret string `json:"auth_client_secret" config:"secret"`
TokenCacheDefaultExpirationInSeconds int `json:"token_cache_default_expiration_in_seconds"`
MongoUrl string `json:"mongo_url"`
MongoTable string `json:"mongo_table"`
MongoVariablesCollection string `json:"mongo_variables_collection"`
PostgresConnString string `json:"postgres_conn_string"`
CamundaWorkerId string `json:"camunda_worker_id"`
CamundaWorkerTopic string `json:"camunda_worker_topic"`
CamundaLockDurationInMs int64 `json:"camunda_lock_duration_in_ms"`
CamundaWorkerWaitDurationInMs int64 `json:"camunda_worker_wait_duration_in_ms"`
CamundaFetchMaxTasks int64 `json:"camunda_fetch_max_tasks"`
IncidentHandler IncidentHandler `json:"incident_handler"`
KafkaUrl string `json:"kafka_url"`
ConsumerGroup string `json:"consumer_group"`
KafkaIncidentTopic string `json:"kafka_incident_topic"`
MgwMqttBroker string `json:"mgw_mqtt_broker"`
WatchMgwProcessSync bool `json:"watch_mgw_process_sync"`
MgwProcessUser string `json:"mgw_process_user"`
Debug bool `json:"debug"`
ReadPrefix string `json:"read_prefix"`
WritePrefix string `json:"write_prefix"`
DefaultPrefix string `json:"default_prefix"`
InstanceIdPlaceholder string `json:"instance_id_placeholder"`
ProcessDefinitionIdPlaceholder string `json:"process_definition_id_placeholder"`
}
type IncidentHandler ¶
type IncidentHandler = string
const CamundaIncidentHandler IncidentHandler = "camunda"
const KafkaIncidentHandler IncidentHandler = "kafka"
const MgwIncidentHandler IncidentHandler = "mgw"
type IoDataSource ¶
type IoDataSource = string
const ApiClient IoDataSource = "api"
const MongoDb IoDataSource = "mongodb"
const PostgresDb IoDataSource = "postgres"
Click to show internal directories.
Click to hide internal directories.