Documentation ¶
Overview ¶
Copyright (c) 2024 Owen Waller. All rights reserved.
Index ¶
- Constants
- func BuildTemplateFilename(dir, filename string) string
- func SetConfigFile(configFilename string) error
- func SetUpTemplates()
- type AuthData
- type Config
- type ConfigMarshalError
- type ConfigReadError
- type EmailAddressData
- type EmailSubjectData
- type EmailTemplateData
- type EmailTemplatesData
- type FieldData
- type LogFileData
- type SmtpData
Constants ¶
View Source
const ( DefaultConfigFilename = "config" DefaultConfigType = "toml" )
Variables ¶
This section is empty.
Functions ¶
func BuildTemplateFilename ¶
func SetConfigFile ¶
func SetUpTemplates ¶
func SetUpTemplates()
Types ¶
type Config ¶
type Config struct { LogFile LogFileData Smtp SmtpData Auth AuthData Addresses EmailAddressData Subjects EmailSubjectData Templates EmailTemplatesData Fields map[string]FieldData }
func ReadConfig ¶
type ConfigMarshalError ¶
type ConfigMarshalError struct {
// contains filtered or unexported fields
}
func NewConfigMarshalError ¶
func NewConfigMarshalError(msg string, err string) ConfigMarshalError
func (ConfigMarshalError) Error ¶
func (e ConfigMarshalError) Error() string
type ConfigReadError ¶
type ConfigReadError struct {
// contains filtered or unexported fields
}
func NewConfigReadError ¶
func NewConfigReadError(msg string, err string) ConfigReadError
func (ConfigReadError) Error ¶
func (e ConfigReadError) Error() string
type EmailAddressData ¶
type EmailSubjectData ¶
type EmailTemplateData ¶
type EmailTemplatesData ¶
type LogFileData ¶
Click to show internal directories.
Click to hide internal directories.