config

package
v0.0.0-...-8c8748e Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientConfig

type ClientConfig struct {
	NotificationServiceURL string `envconfig:"NOTIFICATION_URL" required:"true"`
}

type Config

type Config struct {
	DatabaseConfig
	ClientConfig
}

func (*Config) Load

func (c *Config) Load()

Load reads the configuration from environment variables

type DatabaseConfig

type DatabaseConfig struct {
	DSN string `envconfig:"POSTGRES_DSN" required:"true"`
}

Jump to

Keyboard shortcuts

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