registry

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HANDLER   = "handler"
	RESOURCES = "resources"
)

Predefined registry identifiers

Variables

This section is empty.

Functions

func Register

func Register(registryName, itemName string, item interface{})

Register items to the registry

Types

type ItemsRegistry

type ItemsRegistry map[string]interface{}

ItemsRegistry holds a map of objects

func GetRegistry

func GetRegistry(registryName string) (ItemsRegistry, bool)

GetRegistry returns the global item registry

Jump to

Keyboard shortcuts

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