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

19 lines
561 B
Go

package container
import (
interfaces "github.com/winc-link/hummingbird/internal/hummingbird/core/interface"
"github.com/winc-link/hummingbird/internal/pkg/di"
)
var MessageItfName = di.TypeInstanceToName((*interfaces.MessageItf)(nil))
func MessageItfFrom(get di.Get) interfaces.MessageItf {
return get(MessageItfName).(interfaces.MessageItf)
}
var MessageStoreItfName = di.TypeInstanceToName((*interfaces.MessageStores)(nil))
func MessageStoreItfFrom(get di.Get) interfaces.MessageStores {
return get(MessageStoreItfName).(interfaces.MessageStores)
}