cloudevents

package
v0.0.0-...-32ff608 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

README

transfer the message with cloudevents protocol

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudeventsPlugin

type CloudeventsPlugin struct {
}

CloudeventsPlugin CloudEvents protocol adaptor used to transform CloudEvents message to CloudEvents message.

func (*CloudeventsPlugin) FromCloudEvent

func (c *CloudeventsPlugin) FromCloudEvent(event *v2.Event) (interface{}, error)

func (*CloudeventsPlugin) ProtocolType

func (c *CloudeventsPlugin) ProtocolType() string

func (*CloudeventsPlugin) Setup

func (c *CloudeventsPlugin) Setup(name string, dec plugin.Decoder) error

func (*CloudeventsPlugin) ToCloudEvent

func (c *CloudeventsPlugin) ToCloudEvent(msg interface{}) (*v2.Event, error)

func (*CloudeventsPlugin) ToCloudEvents

func (c *CloudeventsPlugin) ToCloudEvents(msg interface{}) ([]*v2.Event, error)

func (*CloudeventsPlugin) Type

func (c *CloudeventsPlugin) Type() string

Jump to

Keyboard shortcuts

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