lib

package
v0.0.0-...-771088a Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArrayContaintsInt

func ArrayContaintsInt(a int, list []int) bool

func CheckError

func CheckError(err error)

func ConfigInit

func ConfigInit(dir string)

func ConfigLoad

func ConfigLoad(cfg *Config) bool

func ConnectDb

func ConnectDb(host string, port int, user string, password string, name string, ssl bool) (*sql.DB, error)

func ReportChanges

func ReportChanges(cfg *Config, domains []string, subject string)

Types

type Config

type Config struct {
	DB struct {
		Host     string
		Port     int
		User     string
		Name     string
		Password string
		SSL      bool
	}

	SMTP struct {
		Host      string
		Port      int
		User      string
		Password  string
		Recipient string
		Sender    string
	}
}

Jump to

Keyboard shortcuts

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