config

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 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 {
	ServerPort                string `json:"server_port"`
	JwtPubRsa                 string `json:"jwt_pub_rsa"`
	MongoUrl                  string `json:"mongo_url"`
	MongoReplSet              bool   `json:"mongo_repl_set"` //set true if mongodb is configured as replication set or mongos and is able to handle transactions
	MongoTable                string `json:"mongo_table"`
	MongoImportTypeCollection string `json:"mongo_import_type_collection"`
	ImportRepoUrl             string `json:"import_repo_url"`
	PermissionsUrl            string `json:"permissions_url"`
	KafkaBootstrap            string `json:"kafka_bootstrap"`
	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"`
	KafkaReplication          int64  `json:"kafka_replication"`
	Debug                     bool   `json:"debug"`
	StartupEnsureDeployed     bool   `json:"startup_ensure_deployed"`
}

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