shortcode

package
v0.51.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDuplicateDefinition = internal.ErrDuplicateDefinition
	ErrInvalidDefinition   = internal.ErrInvalidDefinition
	ErrUnknownParameter    = internal.ErrUnknownParameter
	ErrMissingParameter    = internal.ErrMissingParameter
	ErrParameterType       = internal.ErrParameterType
)

Functions

func BuiltInDefinitions

func BuiltInDefinitions() []interfaces.ShortcodeDefinition

func NewNoOpService

func NewNoOpService() interfaces.ShortcodeService

func NewSanitizer

func NewSanitizer() interfaces.ShortcodeSanitizer

func RegisterBuiltIns

func RegisterBuiltIns(registry interfaces.ShortcodeRegistry, names []string) error

Types

type DefinitionValidator

type DefinitionValidator = internal.DefinitionValidator

type Registry

type Registry = internal.Registry

func NewRegistry

func NewRegistry(validator DefinitionValidator) *Registry

type Renderer

type Renderer = internal.Renderer

func NewRenderer

func NewRenderer(registry interfaces.ShortcodeRegistry, validator *Validator, opts ...RendererOption) *Renderer

type RendererOption

type RendererOption = internal.RendererOption

func WithRendererCache

func WithRendererCache(cache interfaces.CacheProvider) RendererOption

func WithRendererMetrics

func WithRendererMetrics(metrics interfaces.ShortcodeMetrics) RendererOption

type Service

type Service = internal.Service

func NewService

func NewService(registry interfaces.ShortcodeRegistry, renderer interfaces.ShortcodeRenderer, opts ...ServiceOption) *Service

type ServiceOption

type ServiceOption = internal.ServiceOption

func WithDefaultCache

func WithDefaultCache(cache interfaces.CacheProvider) ServiceOption

func WithLogger

func WithLogger(logger interfaces.Logger) ServiceOption

func WithMetrics

func WithMetrics(metrics interfaces.ShortcodeMetrics) ServiceOption

func WithWordPressSyntax

func WithWordPressSyntax(enabled bool) ServiceOption

type Validator

type Validator = internal.Validator

func NewValidator

func NewValidator() *Validator

Jump to

Keyboard shortcuts

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