Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigurationName = di.TypeInstanceToName(common.ConfigurationStruct{})
ConfigurationName contains the name of device service's ConfigurationStruct implementation in the DIC.
View Source
var DeviceServiceName = di.TypeInstanceToName(contract.DeviceService{})
DeviceServiceName contains the name of device service implementation in the DIC.
View Source
var RestControllerName = "RestController"
RestControllerName contains the name of RestController instance in the DIC.
Functions ¶
func ConfigurationFrom ¶
func ConfigurationFrom(get di.Get) *common.ConfigurationStruct
ConfigurationFrom helper function queries the DIC and returns device service's ConfigurationStruct implementation.
func DeviceServiceFrom ¶
func DeviceServiceFrom(get di.Get) *contract.DeviceService
DeviceServiceFrom helper function queries the DIC and returns device service implementation.
func RestControllerFrom ¶
func RestControllerFrom(get di.Get) controller.RestController
RestControllerFrom helper function queries the DIC and returns RestController instance.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.