events

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: GPL-3.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterCloudEventsWithErrors

func FilterCloudEventsWithErrors(publishEventResults []PublishEventResult, cloudEvents []*cloudevents.Event) []*cloudevents.Event

Types

type CloudEventError

type CloudEventError struct {
	Event *cloudevents.Event
	Error string
}

func CreateCloudEventErrorList

func CreateCloudEventErrorList(publishEventErrorList []PublishEventResult, cloudEvents []*cloudevents.Event) []CloudEventError

type PublishDataInput

type PublishDataInput struct {
	Type       string `json:"type"`
	Compressed bool   `json:"compressed"`
	Payload    string `json:"payload"`
}

func CreatePublishEventList

func CreatePublishEventList(eventSource string, cloudEvents []*cloudevents.Event) []PublishDataInput

func MapCloudEventsToPublishDataInputs

func MapCloudEventsToPublishDataInputs(cloudEvents []*cloudevents.Event) []PublishDataInput

func NewPublishDataInput

func NewPublishDataInput(event *cloudevents.Event) (*PublishDataInput, error)

type PublishEventResult

type PublishEventResult struct {
	Success bool   `json:"success"`
	Error   string `json:"error"`
}

Jump to

Keyboard shortcuts

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