cloudevent

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package cloudevent models CloudEvents.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event[T interface{ ID() string }] struct {
	SpecVersion     string    `json:"specversion"`
	Type            string    `json:"type"`
	Source          string    `json:"source"`
	Time            time.Time `json:"time"`
	ID              string    `json:"id"`
	DataContentType string    `json:"datacontenttype"`
	Data            T         `json:"data"`
}

func New

func New[T interface{ ID() string }](source string, created time.Time, data T) Event[T]

Jump to

Keyboard shortcuts

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