mirror of
https://gitee.com/dromara/mayfly-go
synced 2026-01-03 21:26:35 +08:00
feat: 容器操作优化等
This commit is contained in:
13
server/internal/docker/application/application.go
Normal file
13
server/internal/docker/application/application.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package application
|
||||
|
||||
import (
|
||||
"mayfly-go/pkg/ioc"
|
||||
)
|
||||
|
||||
func InitIoc() {
|
||||
ioc.Register(new(containerAppImpl), ioc.WithComponentName("ContainerApp"))
|
||||
}
|
||||
|
||||
func GetContainerApp() Container {
|
||||
return ioc.Get[Container]("ContainerApp")
|
||||
}
|
||||
Reference in New Issue
Block a user