contentregistry

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: MIT Imports: 5 Imported by: 0

README

togo

togo-framework/content-registry

marketplace pkg.go.dev MIT

A togo plugin — extracted from fadymondy.com.

Install

togo install togo-framework/content-registry

content-registry

One declarative map of every content type (table, slug col, translatable fields, feed-kind, icon, section, searchable) that feed / board / seo / mcp / search / compose all read — replacing five duplicated hardcoded maps.

MIT


Premium sponsors

ID8 Media  ·  One Studio

Support this work — become a sponsor.

Documentation

Overview

Package contentregistry is the Content Registry BASE plugin for togo: One declarative map of every content type (table, slug col, translatable fields, feed-kind, icon, section, searchable) that feed / board / seo / mcp / search / compose all read — replacing five duplicated hardcoded maps.

Driver plugins self-register a Descriptor via contentregistry.Register in their init(); an app installs a driver by blank-importing it. This base owns the registry and exposes it at GET /api/registry.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(d Descriptor)

Register installs a descriptor. Drivers call this from their init().

Types

type Descriptor

type Descriptor struct {
	Key         string `json:"key"`
	Title       string `json:"title"`
	DefaultZone string `json:"defaultZone,omitempty"`
	Asset       string `json:"asset,omitempty"` // URL of the driver's built web asset
}

Descriptor is one registered Content Registry item contributed by a driver.

func All

func All() []Descriptor

All returns every registered descriptor, sorted by key.

Jump to

Keyboard shortcuts

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