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

19 lines
561 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 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)
}