- rbac/: Role type, constants, HasPermission, RoleFromString - blocks/: BlockFunc, BlockMeta, BlockContext, context accessors, BlockRegistry interface - templates/: TemplateFunc, meta types, TemplateRegistry interface - auth/: Claims, PublicClaims, context extractors - content/: Content interface, AuthorProfile/PageInfo/PostInfo types - settings/: Settings interface, map accessor helpers - gating/: AccessRule, AccessResult, EvaluateAccess, Gating interface - crypto/: Crypto interface (Encrypt/Decrypt) - render/: BlockNoteToHTML standalone renderer - video/: ParseEmbedURL, EmbedIframeURL - ai/: ToolDefinition, ToolResult, ToolRegistry interface Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
11 lines
283 B
Go
11 lines
283 B
Go
package blocks
|
|
|
|
import "io/fs"
|
|
|
|
// BlockRegistry is the interface that plugins use to register blocks.
|
|
type BlockRegistry interface {
|
|
Register(meta BlockMeta, fn BlockFunc)
|
|
RegisterTemplateOverride(templateKey, blockKey string, fn BlockFunc)
|
|
LoadSchemasFromFS(fsys fs.FS) error
|
|
}
|