codec

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// ContentTypeProtobuf indicates that the data attribute is a protobuf message.
	ContentTypeProtobuf = "application/protobuf"
)

Variables

This section is empty.

Functions

func FromProto

func FromProto(container *cepb.CloudEvent) (*event.Event, error)

FromProto Convert from a protobuf variant into the generic, SDK event.

func ToProto

func ToProto(e *event.Event) (*cepb.CloudEvent, error)

ToProto convert an SDK event to a protobuf variant of the event that can be marshaled.

Types

This section is empty.

Jump to

Keyboard shortcuts

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