registry

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyFingerprint = errors.New("empty template fingerprint")

Functions

This section is empty.

Types

type Snapshot

type Snapshot struct {
	Templates []core.Template
	NextID    core.TemplateID
}

type TemplateRegistry

type TemplateRegistry struct {
	// contains filtered or unexported fields
}

func New

func New() *TemplateRegistry

func (*TemplateRegistry) Count

func (r *TemplateRegistry) Count() int

func (*TemplateRegistry) Get

func (*TemplateRegistry) GetOrCreate

func (r *TemplateRegistry) GetOrCreate(meta core.Template) (core.TemplateID, bool, error)

func (*TemplateRegistry) Restore

func (r *TemplateRegistry) Restore(snapshot Snapshot) error

func (*TemplateRegistry) Snapshot

func (r *TemplateRegistry) Snapshot() Snapshot

Jump to

Keyboard shortcuts

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