mysql

package
v0.0.0-...-b2d74e5 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GROUP_NAME  = "restore"
	TYPE_NAME   = "output"
	MODULE_NAME = "mysql"
)

Module Constants

Variables

This section is empty.

Functions

This section is empty.

Types

type MySQLConfig

type MySQLConfig struct {
	DSN string
}

MySQLConfig stores configuration for MySQL backups

type RestoreOutputMysql

type RestoreOutputMysql struct {
	core.Module
	// contains filtered or unexported fields
}

RestoreOutputMysql is struct storing inner properties for mysql backups

func (*RestoreOutputMysql) Close

func (m *RestoreOutputMysql) Close() error

Close connection to DB.

func (*RestoreOutputMysql) GetConfig

func (m *RestoreOutputMysql) GetConfig() interface{}

GetConfig returns config of module

func (*RestoreOutputMysql) GetGroup

func (m *RestoreOutputMysql) GetGroup() core.ModuleGroup

GetGroup returns group

func (*RestoreOutputMysql) GetName

func (m *RestoreOutputMysql) GetName() string

GetName returns name of module

func (*RestoreOutputMysql) GetType

func (m *RestoreOutputMysql) GetType() core.ModuleType

GetType returns type

func (*RestoreOutputMysql) InitModule

func (m *RestoreOutputMysql) InitModule(cfg interface{}) error

InitModule initializes module

func (*RestoreOutputMysql) InitPipe

func (m *RestoreOutputMysql) InitPipe(w io.Writer, r io.Reader) error

InitPipe initializes pipe

func (*RestoreOutputMysql) RestoreDatabase

func (m *RestoreOutputMysql) RestoreDatabase() error

RestoreDatabase restores db

func (*RestoreOutputMysql) Run

Run dumps database

Jump to

Keyboard shortcuts

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