configuration

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 8 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"`
	PermSearchUrl   string   `json:"perm_search_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"`
}

Jump to

Keyboard shortcuts

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