model

package
v2.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: MIT Imports: 4 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 {
	ID         uuid.UUID         `gorm:"default:uuid_generate_v4()" json:"event_id"`
	CreatedAt  time.Time         `json:"created_at"`
	UpdatedAt  time.Time         `json:"-"`
	DeletedAt  gorm.DeletedAt    `json:"-"`
	StreamName string            `json:"-"`
	Type       string            `json:"type"`
	Data       datatypes.JSONMap `json:"data" gorm:"type:jsonb"`
}

type EventView

type EventView struct {
	LastModified time.Time `json:"last_modified"`
	Entries      []Event   `json:"entries"`
}

type TransferEvent

type TransferEvent struct {
	Type string                 `json:"event_type"`
	Data map[string]interface{} `json:"event_data"`
}

Jump to

Keyboard shortcuts

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