content

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: BSD-3-Clause Imports: 2 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrTypeNotRegistered means entities type isn't registered (not found in Types map)
	ErrTypeNotRegistered = errors.New(typeNotRegistered)
)

Functions

This section is empty.

Types

type Builder

type Builder func() interface{}

type Entity

type Entity interface {
	EntityName() string
}

type FieldCollection

type FieldCollection struct {
	Type  string      `json:"type"`
	Value interface{} `json:"value"`
}

type FieldCollections

type FieldCollections interface {
	Name() string
	AllowedTypes() map[string]Builder
	Data() []FieldCollection
	Add(fieldCollection FieldCollection)
	Set(i int, fieldCollection FieldCollection)
	SetData(data []FieldCollection)
}

type Types

type Types struct {
	Content          map[string]Builder
	FieldCollections map[string]Builder
	Definitions      map[string]generator.TypeDefinition
}

Directories

Path Synopsis
Package editor enables users to create edit templates from their entities structs so that admins can manage entities
Package editor enables users to create edit templates from their entities structs so that admins can manage entities
Package item provides the default functionality to Ponzu's entities/data types, how they interact with the API, and how to override or enhance their abilities using various interfaces.
Package item provides the default functionality to Ponzu's entities/data types, how they interact with the API, and how to override or enhance their abilities using various interfaces.
Package manager contains the controllers UI to the CMS which wraps all entities editor interfaces to manage the create/edit/delete capabilities of Ponzu entities.
Package manager contains the controllers UI to the CMS which wraps all entities editor interfaces to manage the create/edit/delete capabilities of Ponzu entities.

Jump to

Keyboard shortcuts

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