events

package
v0.0.0-...-0145ae5 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFullyQualifiedTopicName

func CreateFullyQualifiedTopicName(topic string, source types.NamespacedName) string

CreateFullyQualifiedTopicName creates a FQTN from the topic name and event source but if the source is empty then the topic will be returned as is.

Types

type Event

type Event struct {
	Name       string    `json:"name,omitempty"`
	ActiveTime time.Time `json:"activeTime,omitempty"`
	// Data is a pointer ref so these events can be added into the workqueue of the Dispatcher
	Data *EventData `json:"data,omitempty"`
}

func (Event) Key

func (e Event) Key() string

Key hash the EventData into a key that can be used to de-duplicate events.

type EventData

type EventData map[string]string

func (*EventData) Get

func (d *EventData) Get(key string) string

Jump to

Keyboard shortcuts

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