content

package
v0.0.0-...-4314f45 Latest Latest
Warning

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

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

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 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 Type

type Type int
const (
	TypePlain Type = iota + 1
	TypeContent
	TypeFieldCollection
)

type Types

type Types struct {
	Content          map[string]Builder
	FieldCollections map[string]Builder
	Definitions      map[string]generatorTypes.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