Documentation
¶
Index ¶
- Variables
- type Snapshot
- type TemplateRegistry
- func (r *TemplateRegistry) Count() int
- func (r *TemplateRegistry) Get(id core.TemplateID) (core.Template, bool)
- func (r *TemplateRegistry) GetOrCreate(meta core.Template) (core.TemplateID, bool, error)
- func (r *TemplateRegistry) Restore(snapshot Snapshot) error
- func (r *TemplateRegistry) Snapshot() Snapshot
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptyFingerprint = errors.New("empty template fingerprint")
Functions ¶
This section is empty.
Types ¶
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 (r *TemplateRegistry) Get(id core.TemplateID) (core.Template, bool)
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
Click to show internal directories.
Click to hide internal directories.