sources

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

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