Versions in this module Expand all Collapse all v0 v0.2.0 Dec 6, 2022 Changes in this version + type BoltDB struct + func NewBoltDB(config *Config) (*BoltDB, error) + func (s *BoltDB) Close() error + func (s *BoltDB) Insert(stat Stat) error + func (s *BoltDB) List() (map[string][]Stat, error) + func (s *BoltDB) Prune() error type Config + LibPath string + MySQLDump *MySQLDump + Retention int + TimeFormat string + type DB interface + Close func() error + Insert func(Stat) error + List func() (map[string][]Stat, error) + Prune func() error type Email + HistorySchedule string + HistorySubject string + HistoryTemplate string + OnFailure bool type EmailNotifier + func (n *EmailNotifier) NotifyHistory(statMap map[string][]Stat) error + type MySQLDump struct + ExecutableArgs string + ExecutablePath string + OutputPath string + Retention int + Schedule string + TimeLimit string + type MySQLDumpDumper struct + func NewMySQLDumpDumper(config *Config) *MySQLDumpDumper + func (d *MySQLDumpDumper) Dump() Stat + func (d *MySQLDumpDumper) Stop() type Notifier + NotifyHistory func(map[string][]Stat) error + type Stat struct + Duration time.Duration + End string + Error error + Name string + Skip bool + Start string + Success bool + func NewStat(name string, format string) Stat + func (s Stat) Finish(err error) Stat v0.1.0 Dec 2, 2022 Changes in this version + type Config struct + Email *Email + HTTP *HTTP + LogLevel string + LogPath string + MySQL *MySQL + func OpenConfig(path string) (*Config, error) + type Dumper interface + Dump func() error + Stop func() + type Email struct + From string + Host string + InsecureSkipVerify bool + Pass string + Port int + SSL bool + StartTLS bool + Subject string + To []string + User string + type EmailNotifier struct + func NewEmailNotifier(config *Config) *EmailNotifier + func (n *EmailNotifier) Notify(err error) error + type HTTP struct + Addr string + Port int + type MySQL struct + ExecutableArgs string + ExecutablePath string + OutputPath string + Retention int + Schedule string + TimeLimit string + type MySQLDumper struct + func NewMySQLDumper(config *Config) *MySQLDumper + func (d *MySQLDumper) Dump() error + func (d *MySQLDumper) Stop() + type Notifier interface + Notify func(error) error + type RepBak struct + func New(config *Config, dumper Dumper, notifier Notifier) *RepBak + func (r *RepBak) Start() error + func (r *RepBak) Stop()