cloudevent

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 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 any] 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 any](id, 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