configuration

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 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"`
	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"`
	CanaryProtocolId             string `json:"canary_protocol_id"`
	CanaryProtocolSegmentId      string `json:"canary_protocol_segment_id"`

	CanaryProtocolSegmentName string `json:"canary_protocol_segment_name"`
	CanaryHubName             string `json:"canary_hub_name"`
}

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