config

package
v0.0.0-...-9e9902e Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 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 Config

type Config struct {
	Mail struct {
		Charset     string `env:"MAIL_CHARSET" envDefault:"UTF-8"`
		FromAddress string `env:"MAIL_FROM_ADDRESS"`

		SES struct {
			AwsAccessKeyID     string `env:"AWS_ACCESS_KEY_ID"`
			AwsSecretAccessKEY string `env:"AWS_SECRET_ACCESS_KEY"`
			AwsRegion          string `env:"AWS_REGION"`
		}
		SendGrid struct {
			SendGridAPIKEY string `env:"SENDGRID_API_KEY"`
		}
	}
}

Config is application configuration

func Load

func Load() *Config

Load returns configuration made from environment variables

Jump to

Keyboard shortcuts

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