config

package
v0.0.0-...-74f1e5b Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2022 License: GPL-3.0 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 {
	// Backends list of backends
	Backends []string
	// Port for SMTP
	Port string
	// MaxSize of an email (including attachments)
	MaxSize int
	// TLS config
	TLS TLS
	// Tarpit in seconds, default: disabled
	Tarpit int
	// MX enforces MX check
	MX bool
	// SPF enforces SPF check
	SPF bool
	// SMTP enforces SMTP check
	SMTP bool
	// DKIM enforces DKIM checks
	DKIM bool
	// LogLevel
	LogLevel string
	// DB config
	DB DB
	// Monitoring config
	Monitoring Monitoring
}

func New

func New() *Config

New config

type DB

type DB struct {
	// DSN is a database connection string
	DSN string
}

DB config

type Monitoring

type Monitoring struct {
	SentryDSN            string
	SentrySampleRate     int
	HealthchecksUUID     string
	HealthchecksDuration time.Duration
}

Monitoring config

type TLS

type TLS struct {
	Certs []string
	Keys  []string
}

TLS config

Jump to

Keyboard shortcuts

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