events

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

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Created = EventType("user:created")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	ID            uuid.UUID   `json:"id" gorm:"type:uuid;primary_key;"`
	AggregateID   uuid.UUID   `json:"aggregate_id" gorm:"type:uuid"`
	AggregateType string      `json:"aggregate_type"`
	Type          EventType   `json:"type"`
	Version       uint64      `json:"version"`
	Data          PropertyMap `json:"-" gorm:"type:jsonb;column:data"`
}

type EventType

type EventType string

type PropertyMap

type PropertyMap map[string]interface{}

func (*PropertyMap) Scan

func (p *PropertyMap) Scan(src interface{}) error

func (PropertyMap) Value

func (p PropertyMap) Value() (driver.Value, error)

type UserCreatedData

type UserCreatedData struct {
	Username string `json:"username"`
	Email    string `json:"email"`
	Password string `json:"password"`
}

Jump to

Keyboard shortcuts

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