events

package
v0.0.0-...-dc7611c Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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) GetEventId

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

func (*Event) GetEventType

func (e *Event) GetEventType() string

func (*Event) GetOccurredOn

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

type IEvent

type IEvent interface {
	GetEventId() uuid.UUID
	GetEventType() string
	GetOccurredOn() time.Time
}

Jump to

Keyboard shortcuts

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