config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2021 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 DebugSection

type DebugSection struct {
	SendTo    string `toml:"send-to"`
	Debugging bool   `toml:"debugging"`
}

type ExcelSection

type ExcelSection struct {
	File        string `toml:"file"`
	EmailColumn string `toml:"email-column"`
	NameColumn  string `toml:"name-column"`
}

type MainSection

type MainSection struct {
	Template    string `toml:"template"`
	SenderEmail string `toml:"sender-email"`
	SenderName  string `toml:"sender-name"`
	SendEmail   bool   `toml:"send-email"`
}

type Settings

type Settings struct {
	Main  MainSection  `toml:"main"`
	Excel ExcelSection `toml:"excel"`
	Smtp  SmtpSection  `toml:"smtp"`
	Debug DebugSection `toml:"debug"`
}

func New

func New(configFile string) Settings

type SmtpSection

type SmtpSection struct {
	Host     string `toml:"host"`
	Port     int    `toml:"port"`
	Auth     bool   `toml:"auth"`
	User     string `toml:"user"`
	Password string `toml:"password"`
}

Jump to

Keyboard shortcuts

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