strapi

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParsePayload

func ParsePayload(json []byte) (midas.Payload, error)

Types

type Event

type Event int64
const (
	Undefined Event = iota
	Create
	Update
	Delete
	Publish
	Unpublish
)

func (Event) MarshalJSON

func (event Event) MarshalJSON() ([]byte, error)

func (Event) String

func (event Event) String() string

func (*Event) UnmarshalJSON

func (event *Event) UnmarshalJSON(bytes []byte) error

type Payload

type Payload struct {
	CreatedAt time.Time
	Model     string
	// contains filtered or unexported fields
}

func (Payload) Entry

func (p Payload) Entry() map[string]interface{}

func (Payload) Event

func (p Payload) Event() string

func (Payload) MarshalJSON

func (p Payload) MarshalJSON() ([]byte, error)

func (Payload) Metadata

func (p Payload) Metadata() map[string]interface{}

func (Payload) Raw

func (p Payload) Raw() interface{}

func (Payload) SetEntry added in v1.1.0

func (p Payload) SetEntry(entry map[string]interface{})

func (*Payload) UnmarshalJSON

func (p *Payload) UnmarshalJSON(bytes []byte) error

Jump to

Keyboard shortcuts

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