util

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 11 Imported by: 7

Documentation

Index

Constants

View Source
const CALLER_CAMUNDA_LOOP = "camunda_loop"
View Source
const CALLER_RESPONSE = "response"
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
	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
	AuthClientSecret                string
	JwtPrivateKey                   string
	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

func LoadConfig(location string) (config Config, err error)

Jump to

Keyboard shortcuts

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