config

package
v0.0.0-...-3ffb301 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: AGPL-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 {
	MetricsPort uint16
	Targets     []Target
}

func Get

func Get() (Config, error)

type IMAPHost

type IMAPHost struct {
	Hostname           string
	Port               uint16
	Username           string
	Password           string
	InsecureSkipVerify bool
}

type SMTPHost

type SMTPHost struct {
	Hostname string
	Port     uint16
	Username string
	Password string
	From     string
	To       string
}

type Target

type Target struct {
	Name string
	SMTP SMTPHost
	IMAP IMAPHost
}

Jump to

Keyboard shortcuts

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