configuration

package
v0.0.7 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 {
	ServerPort string `json:"server_port"`

	GuaranteeChangeAfter string `json:"guarantee_change_after"`

	AuthEndpoint string `json:"auth_endpoint"`
	AuthClientId string `json:"auth_client_id"`
	AuthUsername string `json:"auth_username"`
	AuthPassword string `json:"auth_password"`

	PermissionSearchUrl     string `json:"permission_search_url"`
	DeviceManagerUrl        string `json:"device_manager_url"`
	DeviceRepositoryUrl     string `json:"device_repository_url"`
	ConnectorMqttBrokerUrl  string `json:"connector_mqtt_broker_url"`
	LastValueQueryUrl       string `json:"last_value_query_url"`
	NotificationUrl         string `json:"notification_url"`
	ProcessDeploymentUrl    string `json:"process_deployment_url"`
	ProcessEngineWrapperUrl string `json:"process_engine_wrapper_url"`

	CanaryDeviceClassId string `json:"canary_device_class_id"`

	CanaryCmdFunctionId       string `json:"canary_cmd_function_id"`
	CanaryCmdCharacteristicId string `json:"canary_cmd_characteristic_id"`
	CanaryCmdValueType        string `json:"canary_cmd_value_type"`

	CanaryCmdFunctionId2                   string      `json:"canary_cmd_function_id_2"`
	CanaryCmdCharacteristicId2             string      `json:"canary_cmd_characteristic_id_2"`
	CanaryCmdValueType2                    string      `json:"canary_cmd_value_type_2"`
	CanaryCmdCharacteristicId2DefaultValue interface{} `json:"canary_cmd_characteristic_id_2_default_value"`

	CanarySensorFunctionId       string `json:"canary_sensor_function_id"`
	CanarySensorCharacteristicId string `json:"canary_sensor_characteristic_id"`
	CanarySensorValueType        string `json:"canary_sensor_value_type"`
	CanarySensorAspectId         string `json:"canary_sensor_aspect_id"`

	CanarySensorFunctionId2       string `json:"canary_sensor_function_id_2"`
	CanarySensorCharacteristicId2 string `json:"canary_sensor_characteristic_id_2"`
	CanarySensorValueType2        string `json:"canary_sensor_value_type_2"`
	CanarySensorAspectId2         string `json:"canary_sensor_aspect_id_2"`

	CanaryProtocolId           string `json:"canary_protocol_id"`
	CanaryProtocolSegmentId    string `json:"canary_protocol_segment_id"`
	CanaryProtocolSegmentId2   string `json:"canary_protocol_segment_id_2"`
	CanaryProtocolSegmentName  string `json:"canary_protocol_segment_name"`
	CanaryProtocolSegmentName2 string `json:"canary_protocol_segment_name_2"`

	CanaryHubName string `json:"canary_hub_name"`

	TopicsWithOwner bool `json:"topics_with_owner"`
}

func Load

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

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

Jump to

Keyboard shortcuts

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