contracts

package
v0.0.0-...-680ee72 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: MIT, GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventBookedEvent

type EventBookedEvent struct {
	EventID string `json:"eventId"`
	UserID  string `json:"userId"`
}

EventBookedEvent is emitted whenever an event is booked

func (*EventBookedEvent) EventName

func (c *EventBookedEvent) EventName() string

EventName returns the event's name

type EventCreatedEvent

type EventCreatedEvent struct {
	ID         string    `json:"id"`
	Name       string    `json:"name"`
	LocationID string    `json:"location_id"`
	Start      time.Time `json:"start_date"`
	End        time.Time `json:"end_date"`
}

EventCreatedEvent is emitted whenever a new event is created

func (*EventCreatedEvent) EventName

func (c *EventCreatedEvent) EventName() string

EventName returns the event's name

type LocationCreatedEvent

type LocationCreatedEvent struct {
	ID      string             `json:"id"`
	Name    string             `json:"name"`
	Address string             `json:"address"`
	Country string             `json:"country"`
	Halls   []persistence.Hall `json:"halls"`
}

LocationCreatedEvent is emitted whenever a location is created

func (*LocationCreatedEvent) EventName

func (c *LocationCreatedEvent) EventName() string

EventName returns the event's name

Jump to

Keyboard shortcuts

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