config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DebugYamlConfig

func DebugYamlConfig()

utility for printing on console during development the yaml config file loaded into the app

func ParseYamlConfigFile

func ParseYamlConfigFile()

Types

type YamlConfig

type YamlConfig struct {
	Environment string `yaml:"environment"`
	Key         string `yaml:"key"`
	AppName     string `yaml:"application_name"`
	Port        int    `yaml:"port"`
	Database    *struct {
		Postgres *struct {
			Name              string `yaml:"name"`
			User              string `yaml:"user"`
			Password          string `yaml:"password"`
			Schema            string `yaml:"schema"`
			MinimumConnection int    `yaml:"min_connection"`
			MaximumConnection int    `yaml:"max_connection"`
			SslMode           string `yaml:"ssl_mode"`
			TimeZone          string `yaml:"timezone"`
		}
		MySql *struct {
			Name              string `yaml:"name"`
			User              string `yaml:"user"`
			Password          string `yaml:"password"`
			MinimumConnection int    `yaml:"min_connection"`
			MaximumConnection int    `yaml:"max_connection"`
			SslMode           string `yaml:"ssl_mode"`
			TimeZone          string `yaml:"timezone"`
		}
	}
	Kafka *struct {
		Brokers []string `yaml:"brokers"`
	}
	RabbitMQ *struct {
	}
}
var Config YamlConfig

global app config wrapper

Jump to

Keyboard shortcuts

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