directus

package
v0.0.0-...-76a272f Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCollectionForSchemata

func CreateCollectionForSchemata(schemata []models.ObjectSchema) error

func FetchConfig

func FetchConfig() (any, error)

func NewClient

func NewClient() *directus.Client

func NewItemsClient

func NewItemsClient() *directus.ItemsClient[any]

func Watch

func Watch(changes chan any) error

Types

type WSMessage

type WSMessage struct {
	Type         string                 `json:"type"`
	Collection   string                 `json:"collection,omitempty"`
	Status       string                 `json:"status,omitempty"`
	RefreshToken string                 `json:"refresh_token,omitempty"`
	AccessToken  string                 `json:"access_token,omitempty"`
	Error        any                    `json:"error,omitempty"`
	Event        string                 `json:"event,omitempty"`
	Query        map[string]interface{} `json:"query,omitempty"`
	UID          string                 `json:"uid,omitempty"`
	Data         interface{}            `json:"data,omitempty"`
}

Jump to

Keyboard shortcuts

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