registry

package
v1.6.5 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: MIT Imports: 3 Imported by: 2

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 stores mapping from address to template handler.

func New

func New() *Registry

New creates Registry instance.

func (*Registry) Get

func (r *Registry) Get(address core.Address) core.Handler

Get template handler for the address if it exists.

func (*Registry) Register

func (r *Registry) Register(address core.Address, handler core.Handler)

Register handler for the address. Panics if address is already taken.

Jump to

Keyboard shortcuts

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