config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 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 {
	LogLevel               string `json:"log_level"` //DEBUG | CALL | NONE
	ServerPort             string `json:"server_port"`
	GroupId                string `json:"group_id"`
	ProcessTopic           string `json:"process_topic"`
	UsersTopic             string `json:"users_topic"`
	PermissionsTopic       string `json:"permissions_topic"`
	PermissionsUrl         string `json:"permissions_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"`
	MongoProcessCollection string `json:"mongo_process_collection"`
	Debug                  bool   `json:"debug"`
	ConnectivityTest       bool   `json:"connectivity_test"`
	KafkaUrl               string `json:"kafka_url"`
}

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