iot_server/internal/pkg/container/streamclient.go

13 lines
350 B
Go
Raw Permalink Normal View History

2023-08-28 06:49:44 +00:00
package container
import (
"github.com/winc-link/hummingbird/internal/pkg/di"
"github.com/winc-link/hummingbird/internal/tools/streamclient"
)
var StreamClientName = di.TypeInstanceToName((*streamclient.StreamClient)(nil))
func StreamClientFrom(get di.Get) streamclient.StreamClient {
return get(StreamClientName).(streamclient.StreamClient)
}