container

package
v1.2.2-dev.96 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const EventsChannelName = "CoreDataEventsChannel"

EventsChannelName contains the name of the Events channel instance in the DIC.

Variables

ConfigurationName contains the name of data's config.ConfigurationStruct implementation in the DIC.

View Source
var MessagingClientName = di.TypeInstanceToName((*messaging.MessageClient)(nil))

MessagingClientName contains the name of the messaging client instance in the DIC.

View Source
var MetadataDeviceClientName = "MetadataDeviceClient"

MetadataDeviceClientName contains the name of the Metadata device client instance in the DIC.

Functions

func ConfigurationFrom

func ConfigurationFrom(get di.Get) *config.ConfigurationStruct

ConfigurationFrom helper function queries the DIC and returns datas's config.ConfigurationStruct implementation.

func MessagingClientFrom

func MessagingClientFrom(get di.Get) messaging.MessageClient

MessagingClientFrom helper function queries the DIC and returns the messaging client.

func MetadataDeviceClientFrom

func MetadataDeviceClientFrom(get di.Get) metadata.DeviceClient

MetadataDeviceClientFrom helper function queries the DIC and returns the Metadata device client instance.

func PublisherEventsChannelFrom

func PublisherEventsChannelFrom(get di.Get) chan<- interface{}

PublisherEventsChannelFrom helper function queries the DIC and returns the Events channel instance used for publishing over the channel.

NOTE If there is a need to obtain a consuming version of the channel create a new helper function which will get the channel from the container and cast it to a consuming channel. The type casting will aid in avoiding errors by restricting functionality.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL