event

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeCreated   = "created"
	TypeUpdated   = "updated"
	TypeDeleted   = "deleted"
	TypeRequested = "requested"
)

event types

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Type          string      `json:"type" yaml:"type"`
	EntityType    string      `json:"entityType" yaml:"entityType"`
	EntityID      string      `json:"entityId" yaml:"entityId"`
	EntityQuickID string      `json:"entityQuickId" yaml:"entityQuickId"`
	Entity        interface{} `json:"entity" yaml:"entity"`
}

Event struct

func (*Event) LoadEntity

func (e *Event) LoadEntity(out interface{}) error

Jump to

Keyboard shortcuts

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