Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventForwarder ¶
type EventForwarder struct {
// contains filtered or unexported fields
}
EventForwarder is a wrapper for an HTTP client in the context of sending events safely in a durable manner.
func NewEventForwarder ¶
func NewEventForwarder(target string) *EventForwarder
NewEventForwarder creates a wrapped HTTP client, that can be used to safely send events to a sink, correctly handling enveloping the event and handling possible error scenarios.
func (*EventForwarder) PostEvent ¶
func (p *EventForwarder) PostEvent(ctx cloudevents.EventContext, message []byte) error
PostEvent sends the event to the defined sink.
Click to show internal directories.
Click to hide internal directories.