Documentation ¶
Index ¶
- Constants
- type MySQLConfig
- type RestoreOutputMysql
- func (m *RestoreOutputMysql) Close() error
- func (m *RestoreOutputMysql) GetConfig() interface{}
- func (m *RestoreOutputMysql) GetGroup() core.ModuleGroup
- func (m *RestoreOutputMysql) GetName() string
- func (m *RestoreOutputMysql) GetType() core.ModuleType
- func (m *RestoreOutputMysql) InitModule(cfg interface{}) error
- func (m *RestoreOutputMysql) InitPipe(w io.Writer, r io.Reader) error
- func (m *RestoreOutputMysql) RestoreDatabase() error
- func (m *RestoreOutputMysql) Run(ctx context.Context) error
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 ¶
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) RestoreDatabase ¶
func (m *RestoreOutputMysql) RestoreDatabase() error
RestoreDatabase restores db
Click to show internal directories.
Click to hide internal directories.