local

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

Documentation

Index

Constants

View Source
const (
	GroupName  = "backup"
	TypeName   = "input"
	ModuleName = "local"
)

Module Constants

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupInputLocal

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

BackupInputLocal is struct storing inner properties for mysql backups

func (*BackupInputLocal) Close

func (b *BackupInputLocal) Close() error

Close closes ...

func (*BackupInputLocal) GetConfig

func (b *BackupInputLocal) GetConfig() interface{}

GetConfig returns config of module

func (*BackupInputLocal) GetGroup

func (b *BackupInputLocal) GetGroup() core.ModuleGroup

GetGroup returns group

func (*BackupInputLocal) GetName

func (b *BackupInputLocal) GetName() string

GetName returns name of module

func (*BackupInputLocal) GetType

func (b *BackupInputLocal) GetType() core.ModuleType

GetType returns type

func (*BackupInputLocal) InitModule

func (b *BackupInputLocal) InitModule(cfg interface{}) error

InitModule initializes module

func (*BackupInputLocal) InitPipe

func (b *BackupInputLocal) InitPipe(w io.Writer, r io.Reader) error

InitPipe initializes pipe

func (*BackupInputLocal) Run

func (b *BackupInputLocal) Run(ctx context.Context) error

Run dumps database

type Config

type Config struct {
	Filename string
}

Jump to

Keyboard shortcuts

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