events

package
v0.0.0-...-2ef827d Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Emit

func Emit(ctx context.Context, buses []messagebus.Client, msg protoreflect.ProtoMessage, preview bool) error

func Extract

func Extract(event *eventspb.CloudEvent, data protoreflect.ProtoMessage) error

Extract extracts the data from a CloudEvent into the underlying proto message

func New

New creates a new CloudEvent from a proto message

func Validate

func Validate(msg protoreflect.ProtoMessage) error

Types

type EventManager

type EventManager interface {
	CreateAndSendEvent(ctx c.Context, event protoreflect.ProtoMessage) error
	Close()
}

func NewEventManager

func NewEventManager(ctx c.Context, registryAddress string) (EventManager, error)

Jump to

Keyboard shortcuts

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