register

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Namespaced

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

func New

func New() *Namespaced

func (*Namespaced) AddNamespace

func (n *Namespaced) AddNamespace(namespace string)

func (*Namespaced) Get

func (n *Namespaced) Get(namespace string) (Untyped, bool)

func (*Namespaced) Register

func (n *Namespaced) Register(namespace, name string, v interface{})

type Untyped

type Untyped interface {
	Register(name string, v interface{})
	Get(name string) (interface{}, bool)
	Clone() map[string]interface{}
}

func NewUntyped

func NewUntyped() Untyped

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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