shared

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2025 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventMeta

type EventMeta interface {
	// contains filtered or unexported methods
}

type EventMetaGenerator

type EventMetaGenerator struct {
	// contains filtered or unexported fields
}

func NewEventMetaGenerator

func NewEventMetaGenerator(provider timeutils.TimeProvider) *EventMetaGenerator

func (*EventMetaGenerator) NewEventMeta

func (gen *EventMetaGenerator) NewEventMeta() EventMetadata

type EventMetadata

type EventMetadata struct {
	EventID   string    `json:"eventID"`
	OccuredAt time.Time `json:"occuredAt"`
}

func (*EventMetadata) Time

func (em *EventMetadata) Time() time.Time

We're getting the timestamp from the id An easier way would be to return the OccuredAt field

Jump to

Keyboard shortcuts

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