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: 12 Imported by: 0

Documentation

Index

Constants

View Source
const GroupName = "backup"

Module Constants

View Source
const ModuleName = "mysql"
View Source
const TypeName = "input"

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupInputMysql

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

BackupInputMysql is struct storing inner properties for mysql backups

func (*BackupInputMysql) Close

func (m *BackupInputMysql) Close() error

Close closes ...

func (*BackupInputMysql) GetConfig

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

GetConfig returns config of module

func (*BackupInputMysql) GetGroup

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

GetGroup returns group

func (*BackupInputMysql) GetName

func (m *BackupInputMysql) GetName() string

GetName returns name of module

func (*BackupInputMysql) GetType

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

GetType returns type

func (*BackupInputMysql) InitModule

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

InitModule initializes module

func (*BackupInputMysql) InitPipe

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

InitPipe initializes pipe

func (*BackupInputMysql) Run

func (m *BackupInputMysql) Run(ctx context.Context) error

Run dumps database

type MySQLConfig

type MySQLConfig struct {
	DSN string
}

MySQLConfig stores configuration for MySQL backups

Jump to

Keyboard shortcuts

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