graphql

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Content

type Content struct {
	ID     string         `json:"id"`
	Type   string         `json:"type"`
	Slug   string         `json:"slug"`
	Locale string         `json:"locale"`
	Status string         `json:"status"`
	Data   map[string]any `json:"data"`
}

Content represents a generic CMS delivery object.

type ContentType

type ContentType struct {
	ID           string         `json:"id"`
	Name         string         `json:"name"`
	Slug         string         `json:"slug"`
	Description  string         `json:"description"`
	Schema       map[string]any `json:"schema"`
	Capabilities map[string]any `json:"capabilities"`
	Icon         string         `json:"icon"`
	CreatedAt    string         `json:"created_at"`
	UpdatedAt    string         `json:"updated_at"`
}

ContentType represents a CMS content type definition.

type Menu struct {
	ID       string     `json:"id"`
	Code     string     `json:"code"`
	Location string     `json:"location"`
	Items    []MenuItem `json:"items"`
}

Menu represents a navigation tree for delivery APIs.

type MenuItem struct {
	ID       string         `json:"id"`
	Type     string         `json:"type"`
	Label    string         `json:"label"`
	URL      string         `json:"url"`
	Target   map[string]any `json:"target"`
	Children []MenuItem     `json:"children,omitempty"`
}

MenuItem represents a navigation node in delivery responses.

type Page

type Page struct {
	ID     string         `json:"id"`
	Title  string         `json:"title"`
	Slug   string         `json:"slug"`
	Locale string         `json:"locale"`
	Status string         `json:"status"`
	Data   map[string]any `json:"data"`
}

Page represents a localized CMS page delivery object.

Jump to

Keyboard shortcuts

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