registry

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: MIT Imports: 0 Imported by: 3

Documentation

Overview

package registry provides a global registry for handlers (functions for handling certain events) and other objects that should be addressed by name.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadRegistry

func LoadRegistry(uname string, specs HSpecs)

Types

type HSpecs

type HSpecs []struct {
	FName    string
	Function Handler
}

type Handler

type Handler interface{}

func GetHandler

func GetHandler(uname, fname string) Handler

type Registry

type Registry map[string]unit

func (Registry) Add

func (reg Registry) Add(uname string, fname string, hdlr Handler)

Jump to

Keyboard shortcuts

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