iot_server/internal/hummingbird/core/container/driverift.go

24 lines
592 B
Go

package container
import (
interfaces "github.com/winc-link/hummingbird/internal/hummingbird/core/interface"
"github.com/winc-link/hummingbird/internal/pkg/di"
)
// DI
var (
DriverAppName = di.TypeInstanceToName((*interfaces.DriverLibApp)(nil))
)
func DriverAppFrom(get di.Get) interfaces.DriverLibApp {
return get(DriverAppName).(interfaces.DriverLibApp)
}
var (
DriverServiceAppName = di.TypeInstanceToName((*interfaces.DriverServiceApp)(nil))
)
func DriverServiceAppFrom(get di.Get) interfaces.DriverServiceApp {
return get(DriverServiceAppName).(interfaces.DriverServiceApp)
}