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

13 lines
381 B
Go
Raw Normal View History

2023-08-29 07:36:46 +00:00
package container
import (
interfaces "github.com/winc-link/hummingbird/internal/hummingbird/core/interface"
"github.com/winc-link/hummingbird/internal/pkg/di"
)
var DataDBClientInterfaceName = di.TypeInstanceToName((*interfaces.DataDBClient)(nil))
func DataDBClientFrom(get di.Get) interfaces.DataDBClient {
return get(DataDBClientInterfaceName).(interfaces.DataDBClient)
}