config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: Apache-2.0 Imports: 10 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 {
	LogLevel   string `json:"log_level"` //DEBUG | CALL | NONE
	ServerPort string `json:"server_port"`
	Debug      bool   `json:"debug"`

	EditForward string `json:"edit_forward"`

	PermissionsUrl      string `json:"permissions_url"`
	DeviceTopic         string `json:"device_topic"`
	DeviceTypeTopic     string `json:"device_type_topic"`
	DeviceGroupTopic    string `json:"device_group_topic"`
	ProtocolTopic       string `json:"protocol_topic"`
	HubTopic            string `json:"hub_topic"`
	ConceptTopic        string `json:"concept_topic"`
	CharacteristicTopic string `json:"characteristic_topic"`
	AspectTopic         string `json:"aspect_topic"`
	FunctionTopic       string `json:"function_topic"`
	DeviceClassTopic    string `json:"device_class_topic"`
	DeviceRepoUrl       string `json:"device_repo_url"`
	KafkaUrl            string `json:"kafka_url"`
	LocationTopic       string `json:"location_topic"`
	UserTopic           string `json:"user_topic"`
	GroupId             string `json:"group_id"`
	HttpClientTimeout   string `json:"http_client_timeout"`

	DisableValidation bool   `json:"disable_validation"`
	ConverterUrl      string `json:"converter_url"` //to validate concept conversions, may be empty to disable concept conversion validation
}

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