Documentation ¶
Index ¶
Constants ¶
View Source
const CALLER_CAMUNDA_LOOP = "camunda_loop"
View Source
const CALLER_RESPONSE = "response"
View Source
const CAMUNDA_VARIABLES_INCIDENT = "incident"
View Source
const CAMUNDA_VARIABLES_OVERWRITE = "overwrite"
View Source
const CAMUNDA_VARIABLES_PAYLOAD = "payload"
View Source
const OPTIMISTIC = "optimistic"
View Source
const PARALLEL = "parallel"
View Source
const PESSIMISTIC = "pessimistic"
View Source
const ROUND_ROBIN = "round_robin"
View Source
const SEQUENTIAL = "sequential"
Variables ¶
View Source
var GetId = func() string { return uuid.NewString() }
to replace when testing
View Source
var TimeNow = func() time.Time { return time.Now() }
to replace time when testing
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { PrometheusPort string ShardsDb string `config:"secret"` DeviceRepoUrl string CompletionStrategy string OptimisticTaskCompletionTimeout int64 CamundaWorkerTimeout int64 CamundaWorkerTasks int64 CamundaFetchLockDuration int64 CamundaTopic string CamundaTaskResultName string KafkaUrl string KafkaConsumerGroup string ResponseTopic string AuthExpirationTimeBuffer float64 AuthEndpoint string AuthClientId string `config:"secret"` AuthClientSecret string `config:"secret"` JwtPrivateKey string `config:"secret"` JwtExpiration int64 JwtIssuer string KafkaIncidentTopic string Debug bool MarshallerUrl string HealthCheckPort string GroupScheduler string HandleMissingLastValueTimeAsError bool //set to true for mgw implementations of last-value / TimescaleWrapperUrl TimescaleWrapperUrl string HttpCommandConsumerPort string HttpCommandConsumerSync bool MetadataResponseTo string DisableKafkaConsumer bool DisableHttpConsumer bool AsyncFlushFrequency string AsyncCompression string SyncCompression string Sync bool SyncIdempotent bool PartitionNum int64 ReplicationFactor int64 AsyncFlushMessages int64 KafkaConsumerMaxWait string KafkaConsumerMinBytes int64 KafkaConsumerMaxBytes int64 SubResultExpirationInSeconds int32 SubResultDatabaseUrls []string MemcachedTimeout string MemcachedMaxIdleConns int64 ResponseWorkerCount int64 MetadataErrorTo string ErrorTopic string CacheTimeout string CacheInvalidationAllKafkaTopics []string DeviceKafkaTopic string DeviceGroupKafkaTopic string KafkaTopicConfigs map[string][]kafka.ConfigEntry IgnoreUserMetrics []string }
func LoadConfig ¶
Click to show internal directories.
Click to hide internal directories.