config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 4, 2025 License: MIT Imports: 1 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 {
	SMTPHost     string   `json:"smtp_host"`
	SMTPPort     string   `json:"smtp_port"`
	DefaultFrom  string   `json:"default_from"`
	DefaultTo    string   `json:"default_to"`
	MaxBodySize  int64    `json:"max_body_size"`
	AllowedHosts []string `json:"allowed_hosts"`
}

Config holds the mail server configuration

func Load

func Load() (Config, error)

Load initializes configuration from environment variables

Jump to

Keyboard shortcuts

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