Files
mayfly-go/server/internal/machine/infra/persistence/persistence.go

16 lines
649 B
Go
Raw Normal View History

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"))
ioc.Register(newMachineCmdConfRepo(), ioc.WithComponentName("MachineCmdConfRepo"))
2024-01-21 22:52:20 +08:00
}