uap

package
v0.0.0-...-e5ec0a4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL