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

15 lines
379 B
Go

package container
import (
interfaces "github.com/winc-link/hummingbird/internal/hummingbird/core/interface"
"github.com/winc-link/hummingbird/internal/pkg/di"
)
// DeviceItfName
var DeviceItfName = di.TypeInstanceToName((*interfaces.DeviceItf)(nil))
// DeviceItfFrom
func DeviceItfFrom(get di.Get) interfaces.DeviceItf {
return get(DeviceItfName).(interfaces.DeviceItf)
}