configuration

package
v1.0.16 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	EventApiPort              string `json:"event_api_port"`
	DisableEventApiHttpLogger bool   `json:"disable_event_api_http_logger"`
	EnableSwaggerUi           bool   `json:"enable_swagger_ui"`

	CamundaDb  string `json:"camunda_db"`
	CamundaUrl string `json:"camunda_url"`

	DeploymentMetadataStorage string `json:"deployment_metadata_storage"`

	InitialWaitDuration string `json:"initial_wait_duration"`

	Debug bool `json:"debug"`

	MqttBroker            string `json:"mqtt_broker"`
	MqttClientId          string `json:"mqtt_client_id"`
	MqttUser              string `json:"mqtt_user" config:"secret"`
	MqttPw                string `json:"mqtt_pw" config:"secret"`
	MqttFileStoreLocation string `json:"mqtt_file_store_location"`
	NetworkId             string `json:"network_id"`
	FullUpdateInterval    string `json:"full_update_interval"`

	HistoryCleanupInterval      string `json:"history_cleanup_interval"`
	HistoryCleanupMaxAge        string `json:"history_cleanup_max_age"`
	HistoryCleanupBatchSize     int    `json:"history_cleanup_batch_size"`
	HistoryCleanupFilterLocally bool   `json:"history_cleanup_filter_locally"`
	HistoryCleanupLocation      string `json:"history_cleanup_location"`
	NotificationUrlPlaceholder  string `json:"notification_url_placeholder"`
	NotificationUrl             string `json:"notification_url"`
}

func Load

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

loads config from json in location and used environment variables (e.g ZookeeperUrl --> ZOOKEEPER_URL)

Jump to

Keyboard shortcuts

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