config

package
v0.0.0-...-fa2c683 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2024 License: MIT Imports: 11 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 {
	// used by the repositories (required)
	DatabaseURL    string `koanf:"DATABASE_URL"`
	DatabaseDriver string `koanf:"DATABASE_DRIVER"`

	// used by tracing
	ServiceName     string `koanf:"SERVICE_NAME"`
	ServiceVersion  string `koanf:"SERVICE_VERSION"`
	TracingExporter string `koanf:"TRACING_EXPORTER"`
	TracingHost     string `koanf:"TRACING_HOST"`
	TracingPort     string `koanf:"TRACING_PORT"`

	// general
	Env    string `koanf:"ENV"`
	Port   string `koanf:"PORT"`
	Listen string `koanf:"LISTEN"`

	ApiKey string `koanf:"API_KEY"`
}
var Conf *Config

func ProvideConfig

func ProvideConfig() (*Config, error)

Jump to

Keyboard shortcuts

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