configuration

package
v0.0.27 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleEnvironmentVars

func HandleEnvironmentVars(config Config)

preparations for docker

Types

type Config

type Config = *ConfigStruct

func Load

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

type ConfigStruct

type ConfigStruct struct {
	ApiPort         string   `json:"api_port"`
	DeviceRepoUrl   string   `json:"device_repo_url"`
	ImportDeployUrl string   `json:"import_deploy_url"`
	ImportRepoUrl   string   `json:"import_repo_url"`
	MemcachedUrls   []string `json:"memcached_urls"`
	Debug           bool     `json:"debug"`

	KafkaUrl                        string   `json:"kafka_url"`
	KafkaConsumerGroup              string   `json:"kafka_consumer_group"`
	KafkaTopicsForCacheInvalidation []string `json:"kafka_topics_for_cache_invalidation"`

	InitTopics bool `json:"init_topics"`

	LogLevel string `json:"log_level"`
	// contains filtered or unexported fields
}

func (*ConfigStruct) GetLogger added in v0.0.27

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

Jump to

Keyboard shortcuts

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