config

package
v0.0.5 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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogEnvConfig = true

Functions

This section is empty.

Types

type Config

type Config struct {
	ApiPort                   string `json:"api_port"`
	KafkaBootstrap            string `json:"kafka_bootstrap"`
	MqttBroker                string `json:"mqtt_broker"`
	MqttUser                  string `json:"mqtt_user"`
	MqttPw                    string `json:"mqtt_pw"`
	MongoUrl                  string `json:"mongo_url"`
	MongoReplSet              bool   `json:"mongo_repl_set"`
	MongoTable                string `json:"mongo_table"`
	MongoImportTypeCollection string `json:"mongo_import_type_collection"`
	TransferImage             string `json:"transfer_image"`
	DeployMode                string `json:"deploy_mode"`
	DockerNetwork             string `json:"docker_network"`
	DockerPull                bool   `json:"docker_pull"`
	RancherUrl                string `json:"rancher_url"`
	RancherAccessKey          string `json:"rancher_access_key"`
	RancherSecretKey          string `json:"rancher_secret_key"`
	RancherStackId            string `json:"rancher_stack_id"`
	RancherNamespaceId        string `json:"rancher_namespace_id"`
	RancherProjectId          string `json:"rancher_project_id"`
	VerifyInput               bool   `json:"verify_input"`
	ImportDeployUrl           string `json:"import_deploy_url"`
	AnalyticsPipelineUrl      string `json:"analytics_pipeline_url"`
	StartupEnsureDeployed     bool   `json:"startup_ensure_deployed"`
	PermissionsV2Url          string `json:"permissions_v2_url"`

	Debug bool `json:"debug"`
}

func Load

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