package
2.0.2
Repository: https://github.com/ian-mi/sdk-go.git
Documentation: pkg.go.dev

# Functions

Add a new Format.
IsFormat returns true if mediaType begins with "application/cloudevents".
Lookup returns the format for mediaType, or nil if not found.
Marshal an event to bytes using the mediaType event format.
Unmarshal bytes to an event using the mediaType event format.

# Constants

Prefix for event-format media types.

# Variables

JSON is the built-in "application/cloudevents+json" format.

# Interfaces

Format marshals and unmarshals structured events to bytes.

# Type aliases

UnknownFormat allows an event with an unknown format string to be forwarded, but Marshal() and Unmarshal will always fail.