config

package
v0.0.3 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, 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 {
	JwtPubRsa                 string `json:"jwt_pub_rsa"`
	ServerPort                string `json:"server_port"`
	KafkaBootstrap            string `json:"kafka_bootstrap"`
	GroupId                   string `json:"group_id"`
	ImportTypeTopic           string `json:"import_type_topic"`
	PermissionsUrl            string `json:"permissions_url"`
	DeviceRepoUrl             string `json:"device_repo_url"`
	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"`
	Debug                     bool   `json:"debug"`
	Validate                  bool   `json:"validate"`
	UsersTopic                string `json:"users_topic"`
	RepublishStartup          bool   `json:"republish_startup"`
	PermissionsTopic          string `json:"permissions_topic"`
}

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