events

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataServiceEvent

type DataServiceEvent[T any] struct {
	Id        string               `json:"id,omitempty"`
	Timestamp time.Time            `json:"timestamp,omitempty"`
	EventType DataServiceEventType `json:"eventType,omitempty"`
	Data      T                    `json:"data,omitempty"`
	Extra     map[string]any       `json:"extra,omitempty"`
	Subject   string               `json:"subject,omitempty"`
}

type DataServiceEventType

type DataServiceEventType string
const (
	DataServiceEventTypeCreated DataServiceEventType = "created"
	DataServiceEventTypeUpdated DataServiceEventType = "updated"
	DataServiceEventTypeExists  DataServiceEventType = "exists"
	DataServiceEventTypeDeleted DataServiceEventType = "deleted"
)

Jump to

Keyboard shortcuts

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