Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
CloudEvents = "cloudevents"
)
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter interface { // ToCloudEvent transform protocol to CloudEvent ToCloudEvent(interface{}) (*cloudv2.Event, error) //ToCloudEvents transform protocol to CloudEvent list. ToCloudEvents(interface{}) ([]*cloudv2.Event, error) //FromCloudEvent transfor CloudEvent to target protocol. FromCloudEvent(event *cloudv2.Event) (interface{}, error) // ProtocolType protocol type, protocol type should not be null ProtocolType() string }
Adapter protocol adapter transfer the message with given protocol and events message
Click to show internal directories.
Click to hide internal directories.