2022-09-09 18:26:08 +08:00
|
|
|
package persistence
|
|
|
|
|
|
2024-01-21 22:52:20 +08:00
|
|
|
import (
|
|
|
|
|
"mayfly-go/pkg/ioc"
|
2022-09-09 18:26:08 +08:00
|
|
|
)
|
|
|
|
|
|
2024-03-02 19:08:19 +08:00
|
|
|
func InitIoc() {
|
2024-01-21 22:52:20 +08:00
|
|
|
ioc.Register(newMachineRepo(), ioc.WithComponentName("MachineRepo"))
|
|
|
|
|
ioc.Register(newMachineFileRepo(), ioc.WithComponentName("MachineFileRepo"))
|
|
|
|
|
ioc.Register(newMachineScriptRepo(), ioc.WithComponentName("MachineScriptRepo"))
|
|
|
|
|
ioc.Register(newMachineCronJobRepo(), ioc.WithComponentName("MachineCronJobRepo"))
|
|
|
|
|
ioc.Register(newMachineCronJobExecRepo(), ioc.WithComponentName("MachineCronJobExecRepo"))
|
|
|
|
|
ioc.Register(newMachineTermOpRepoImpl(), ioc.WithComponentName("MachineTermOpRepo"))
|
2024-04-27 01:35:21 +08:00
|
|
|
ioc.Register(newMachineCmdConfRepo(), ioc.WithComponentName("MachineCmdConfRepo"))
|
2024-01-21 22:52:20 +08:00
|
|
|
}
|