config

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 8 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 {
	MongoUrl              string `config:"secret"`
	MongoTable            string
	DeviceStateCollection string
	HubStateCollection    string

	InfluxdbUrl     string
	InfluxdbDb      string
	InfluxdbUser    string `config:"secret"`
	InfluxdbPw      string `config:"secret"`
	InfluxdbTimeout int64

	DeviceLogTopic string
	HubLogTopic    string
	DeviceTopic    string
	HubTopic       string

	KafkaUrl     string
	KafkaGroupId string
	Debug        bool
}

func Load

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳