contentbridge

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package contentbridge serves published content to plugins over the sdk seam.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(store content.Store, types Types, library served.Library, settings served.Settings) sdk.ContentReader

New returns an sdk.ContentReader over store, with definitions from types and the site's choices from settings.

Types

type Types added in v0.11.0

type Types interface {
	ByKey(ctx context.Context, key string) (content.Type, error)
	Groups(ctx context.Context) ([]content.Group, error)
	Params(ctx context.Context) *content.ParamRegistry
}

Types reads the content type a published item stands under and the groups its fields stand in.

Jump to

Keyboard shortcuts

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