Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterModule ¶
func RegisterModule(module Module)
Types ¶
type Module ¶
type Module interface { GetName() string GetGroup() ModuleGroup GetType() ModuleType GetConfig() interface{} InitModule(cfg interface{}) error Run(ctx context.Context) error Close() error InitPipe(w io.Writer, r io.Reader) error }
func GetModule ¶
func GetModule(moduleGroup ModuleGroup, moduleType ModuleType, name string) Module
type ModuleError ¶
func (ModuleError) Error ¶
func (me ModuleError) Error() string
type ModuleGroup ¶
type ModuleGroup string
const ( ModuleGroupBackup ModuleGroup = "backup" ModuleGroupRestore ModuleGroup = "restore" ModuleGroupGlobal ModuleGroup = "global" )
type ModuleType ¶
type ModuleType string
const ( ModuleTypeInput ModuleType = "input" ModuleTypeOutput ModuleType = "output" ModuleTypeCompress ModuleType = "compress" ModuleTypeDecompress ModuleType = "decompress" ModuleTypeEncrypt ModuleType = "encrypt" ModuleTypeDecrypt ModuleType = "decrypt" )
Click to show internal directories.
Click to hide internal directories.