registry

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

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

Registry provides with means for dynamically registering notification templates.

func New

func New() *Registry

New returns a new Template Registry.

func (*Registry) Get

func (r *Registry) Get(n string) (*template.Template, error)

Get retrieves a handler from the registry.

func (*Registry) Put

func (r *Registry) Put(tb []byte, hs map[string]handler.Handler) (string, error)

Put registers a handler in the registry.

Jump to

Keyboard shortcuts

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