Documentation
¶
Overview ¶
Package uap provides capability for Google Cloud Agents to communicate with Google Cloud Service Providers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Communicate ¶
func Communicate(ctx context.Context, endpoint string, channel string, messageHandler MsgHandlerFunc, cloudProperties *metadataserver.CloudProperties) error
Communicate establishes ongoing communication with UAP Highway. "endpoint" is the endpoint and will often be an empty string. "channel" is the registered channel name to be used for communication between the agent and the service provider. "messageHandler" is the function that the agent will use to handle incoming messages.
Types ¶
type MsgHandlerFunc ¶
type MsgHandlerFunc func(context.Context, *anypb.Any, *metadataserver.CloudProperties) (*anypb.Any, error)
MsgHandlerFunc is the function that the agent will use to handle incoming messages.
Click to show internal directories.
Click to hide internal directories.