wordpress

package
v0.0.0-...-e3259e4 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueryConfig

func QueryConfig(installDir string) (apps.ApplicationConfig, error)

QueryConfig obtains an ApplicationConfig from by querying the MySQL database

Types

type Config

type Config struct {
	Mail         Mail
	SMTPSettings SMTPSettings
}

Config is a structure that contains the Mail/SMTP configuration data of WP

func (Config) GetSMTPSettings

func (c Config) GetSMTPSettings() *apps.SMTPSettings

GetSMTPSettings returns a SMTPSettings from Config structure

func (*Config) ValidateSMTPSettings

func (c *Config) ValidateSMTPSettings() error

ValidateSMTPSettings checks the SMTPSettings are correct

type Mail

type Mail struct {
	FromMail string
	FromName string
	Mailer   string
}

Mail is a structure that contains the Mail configuration data of WP

type SMTPSettings

type SMTPSettings struct {
	Host    string
	Port    int
	User    string
	Pass    string
	Encrypt string
	Auth    bool
	AutoTLS bool
}

SMTPSettings is a structure that contains the SMTP configuration data of WP

Jump to

Keyboard shortcuts

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