config

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 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 {
	KafkaBootstrap         string
	KafkaTopicDevices      string
	KafkaTopicDeviceTypes  string
	KafkaTopicTableUpdates string
	KafkaGroupId           string

	PostgresHost              string `json:"PostgresHost"`
	PostgresPort              int    `json:"PostgresPort"`
	PostgresUser              string `json:"PostgresUser" config:"secret"`
	PostgresPw                string `json:"PostgresPw" config:"secret"`
	PostgresDb                string `json:"PostgresDb"`
	PostgresTableworkerSchema string `json:"PostgresTableworkerSchema"`

	UseDistributedHypertables   bool
	HypertableReplicationFactor int `json:"HypertableReplicationFactor"`

	DeviceManagerUrl string `json:"DeviceManagerUrl"`

	DevNotificationsUrl string `json:"DevNotificationsUrl"`

	ApiDocsProviderBaseUrl string `json:"ApiDocsProviderBaseUrl"`

	SyncOnStartup bool `json:"SyncOnStartup"`

	Debug bool
}

func LoadConfig

func LoadConfig(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