event

package
v0.0.0-...-60e5973 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2023 License: AGPL-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 Event

type Event interface {
	EventName() string
}

Event is a domain event marker.

type UserActivated

type UserActivated struct {
	ID uuid.UUID `json:"id"`
}

UserActivated event.

func (UserActivated) EventName

func (e UserActivated) EventName() string

type UserDeactivated

type UserDeactivated struct {
	ID uuid.UUID `json:"id"`
}

UserDeactivated event.

func (UserDeactivated) EventName

func (e UserDeactivated) EventName() string

type UserEmailChanged

type UserEmailChanged struct {
	ID    uuid.UUID `json:"id"`
	Email string    `json:"email"`
}

UserEmailChanged event.

func (UserEmailChanged) EventName

func (e UserEmailChanged) EventName() string

type UserNameChanged

type UserNameChanged struct {
	ID   uuid.UUID `json:"id"`
	Name string    `json:"name"`
}

UserNameChanged event.

func (UserNameChanged) EventName

func (e UserNameChanged) EventName() string

type UserRegistered

type UserRegistered struct {
	ID    uuid.UUID `json:"id"`
	Name  string    `json:"name"`
	Email string    `json:"email"`
}

UserRegistered event.

func (UserRegistered) EventName

func (e UserRegistered) EventName() string

Jump to

Keyboard shortcuts

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