conf

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// BuildVersion will be overridden by the build system
	BuildVersion = "dev"

	// BuildCommit will be overridden by the build system
	BuildCommit = ""
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Port          int
	GCPProjectID  string
	GCPServiceAcc string

	Database *Database

	Publisher *Publisher

	ToleranceURL        string
	UniqueConstraintURL string

	GitAuthPrivateKeyPath string

	//MultiTenancyEnabled this will affect how tolerance spec files stored and read
	//if MULTI_TENANCY_ENABLED env variable is NOT present the value will be false
	MultiTenancyEnabled bool

	//PodName name of replication pod
	PodName string
	//Deployment name of deployment
	Deployment string
	//Environment environment name where the instance deployed
	Environment string
}

Config is service config

func LoadConfig

func LoadConfig(confFile *ConfigFile) (*Config, error)

LoadConfig load configuration

type ConfigFile

type ConfigFile struct {
	FilePath string
}

ConfigFile as the configuration

type Database

type Database struct {
	Host string
	Port int
	Name string
	User string
	Pass string
}

Database is database config

type Kafka

type Kafka struct {
	Topic  string
	Broker []string
}

Kafka is configuration of apache kafka client

type Publisher

type Publisher struct {
	Profile *Kafka
	Audit   *Kafka
}

Publisher is predator config to publish data to kafka

Jump to

Keyboard shortcuts

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