Documentation ¶
Index ¶
Constants ¶
View Source
const (
// ContentTypeProtobuf indicates that the data attribute is a protobuf message.
ContentTypeProtobuf = "application/protobuf"
)
Variables ¶
View Source
var ErrNotSupportBatch = errors.New("http sender: batch sending isn't supported")
Functions ¶
func FromProto ¶
func FromProto(container *cloudevents.CloudEvent) (*event.Event, error)
FromProto Convert from a protobuf variant into the generic, SDK event.
func ToProto ¶
func ToProto(e *event.Event) (*cloudevents.CloudEvent, error)
ToProto convert an SDK event to a protobuf variant of the event that can be marshaled.
Types ¶
type CloudEventSender ¶
func NewHTTPSender ¶
func NewHTTPSender(target string) CloudEventSender
func NewVanusSender ¶
func NewVanusSender(endpoint string, eventbus string) CloudEventSender
Click to show internal directories.
Click to hide internal directories.