Versions in this module Expand all Collapse all v1 v1.5.0 Aug 29, 2026 v1.4.0 Aug 29, 2026 Changes in this version + var ErrCatalogRequired = errors.New("composition catalog is required") + var ErrTargetRequired = errors.New("composition target is required") + func DirtySet(previous, next RenderManifest) []string + type Cache interface + Get func(key string) (Fragment, bool) + Put func(key string, fragment Fragment) + type Composer struct + func New(catalog *component.Catalog, target string, options Options) (*Composer, error) + func (composer *Composer) Compose(ctx context.Context, spec document.DocumentSpec) (RenderManifest, error) + type Fragment struct + Assets []document.AssetRef + Children []string + ComponentID string + Content []byte + Dependencies []string + Hash string + Key component.Key + Mode document.CompositionMode + type MemoryCache struct + func NewMemoryCache() *MemoryCache + func (cache *MemoryCache) Get(key string) (Fragment, bool) + func (cache *MemoryCache) Put(key string, fragment Fragment) + type Options struct + Cache Cache + MaxWorkers int + Values map[string]any + type RenderManifest struct + Dependencies map[string][]string + DocumentID string + Fragments []Fragment + Hash string + RootOrder []string + SourceMap map[string]SourceLocation + Sources map[string][]document.AssetRef + Stats Stats + Target string + Theme string + type SourceLocation struct + FragmentHash string + Order int + type Stats struct + CacheHits int + Rendered int Other modules containing this package github.com/BuddhiLW/AutoPDF/v2