Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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
Click to show internal directories.
Click to hide internal directories.