strapi

package
v0.0.0-...-93092f2 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 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 Client

type Client struct {
	NoBuild    bool
	WatchAdmin bool
}

func (Client) Start

func (c Client) Start() error

type Entry

type Entry struct {
	ID        int       `json:"id"`
	CreatedAt time.Time `json:"createdAt"`
	UpdatedAt time.Time `json:"updatedAt"`
}

type Event

type Event struct {
	Event     string    `json:"event"`
	CreatedAt time.Time `json:"createdAt"`
	Model     string    `json:"model"`
	Entry     Entry     `json:"entry,omitempty"`
	Media     Media     `json:"media,omitempty"`
}

func (Event) Fields

func (e Event) Fields() map[string]any

type Media

type Media struct {
	Media struct {
		ID        int       `json:"id"`
		Name      string    `json:"name"`
		Hash      string    `json:"hash"`
		Sha256    string    `json:"sha256"`
		Ext       string    `json:"ext"`
		Mime      string    `json:"mime"`
		Size      float64   `json:"size"`
		URL       string    `json:"url"`
		CreatedAt time.Time `json:"createdAt"`
		UpdatedAt time.Time `json:"updatedAt"`
	} `json:"media"`
}

Jump to

Keyboard shortcuts

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