events

package
v0.0.0-...-4a59535 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEvent

func IsEvent(obj interface{}) bool

Types

type Event

type Event struct {
	EventId    uuid.UUID `json:"event_id"`
	EventType  string    `json:"event_type"`
	OccurredOn time.Time `json:"occurred_on"`
}

func NewEvent

func NewEvent(eventType string) *Event

func (*Event) GetEventFullTypeName

func (e *Event) GetEventFullTypeName() string

func (*Event) GetEventId

func (e *Event) GetEventId() uuid.UUID

func (*Event) GetEventType

func (e *Event) GetEventType() string

func (*Event) GetEventTypeName

func (e *Event) GetEventTypeName() string

func (*Event) GetOccurredOn

func (e *Event) GetOccurredOn() time.Time

type IEvent

type IEvent interface {
	GetEventId() uuid.UUID
	GetOccurredOn() time.Time
	// GetEventTypeName get short type name of the event - we use event short type name instead of full type name because this event in other receiver packages could have different package name
	GetEventTypeName() string
	GetEventFullTypeName() string
}

Jump to

Keyboard shortcuts

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