database

package
v0.0.0-...-05a68e9 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DataDir = "/var/lib/backup/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB interface {
	BackupByName(name, folder string)
}

type Database

type Database struct {
	DatabaseList List   `json:"database_list" yaml:"database_list"`
	Host         string `json:"host"`
	Port         int    `json:"port"`
	Username     string `json:"username"`
	Password     string `json:"password"`
	Corn         string `json:"corn"`
	Retention    string `json:"retention"`
	ExtraArgs    string `json:"extra_args" yaml:"extra_args"`
	BackupType   string
}

func (*Database) BackupByName

func (db *Database) BackupByName(name, folder string)

func (*Database) Start

func (db *Database) Start(backup func(name, folder string))

type List

type List []string

Source Files

  • database.go

Jump to

Keyboard shortcuts

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