register

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2021 License: Apache-2.0 Imports: 1 Imported by: 7

Documentation

Overview

Package register offers tools for creating and managing registers.

SPDX-License-Identifier: Apache-2.0

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
SPDX-License-Identifier: Apache-2.0
SPDX-License-Identifier: Apache-2.0

Jump to

Keyboard shortcuts

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