config

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: Apache-2.0 Imports: 12 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
	DeviceOfflineNotificationInfoCollection string

	NotificationUrl 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

	RoundTime string

	DeviceRepositoryUrl string

	ApiDocsProviderBaseUrl string

	InitTopics bool

	LogLevel string
	// contains filtered or unexported fields
}

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)

func (*Config) GetLogger added in v0.0.15

func (this *Config) GetLogger() *slog.Logger

Jump to

Keyboard shortcuts

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