config

package
v1.0.32 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SampleConfig = `` /* 607-byte string literal not displayed */

Functions

This section is empty.

Types

type Config

type Config struct {
	Notify
	Create
	DiffCfg
}

func New

func New(filename string) (*Config, error)

func (*Config) String

func (c *Config) String() string

type Create

type Create struct {
	Databaese string `toml:"databaese"`
	Keyfile   string `toml:"keyfile"`
	Password  string `toml:"password"`
}

type DiffCfg

type DiffCfg struct {
	Database1      string `toml:"database1"`
	Database2      string `toml:"database2"`
	Keyfile1       string `toml:"keyfile1"`
	Keyfile2       string `toml:"keyfile2"`
	OutputFilename string `toml:"outputFilename"`
	Password1      string `toml:"password1"`
	Password2      string `toml:"password2"`
}

type Notify

type Notify struct {
	EmailContent  string   `toml:"emailContent"`
	From          string   `toml:"from"`
	EmailPassword string   `toml:"emailPassword"`
	SMTPHost      string   `toml:"smtpHost"`
	SMTPPort      int      `toml:"smtpPort"`
	Subject       string   `toml:"subject"`
	To            []string `toml:"to"`
}

Jump to

Keyboard shortcuts

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