CloudEvents Outbound Sender Interface (protocol/outbound.go)

cloudevents/sdk-go · v2/protocol/outbound.go · go · Apache-2.0
integration, chat, lang:go, tag:cloudevents, tag:protocol

Defines the standard interface for sending CloudEvents messages with support for transformers and lifecycle management. Use this to implement custom event transport protocols.

// Source: https://github.com/cloudevents/sdk-go | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
/*
 Copyright 2021 The CloudEvents Authors
 SPDX-License-Identifier: Apache-2.0
*/

package protocol

import (
	"context"

	"github.com/cloudevents/sdk-go/v2/binding"
)

// Sender sends messages.
type Sender interface {
	// Send a message.
	//
	// Send returns when the "outbound" message has been sent. The Sender may
	// still be expecting acknowledgment or holding other state for the message.
	//
	// m.Finish() is called when sending is finished (both succeeded or failed):
	// expected acknowledgments (or errors) have been received, the Sender is
	// no longer holding any state for th

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key