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

13 lines
344 B
Go

package container
import (
"github.com/winc-link/hummingbird/internal/pkg/di"
"github.com/winc-link/hummingbird/internal/tools/agentclient"
)
var AgentClientName = di.TypeInstanceToName((*agentclient.AgentClient)(nil))
func AgentClientNameFrom(get di.Get) agentclient.AgentClient {
return get(AgentClientName).(agentclient.AgentClient)
}