nodemap

package
v3.0.0-alpha-29 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package nodemap provides a schema registry index type.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Map

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

Map is a lazy index of a registry. The zero value is an index of the default registry.

func (*Map) Find

func (m *Map) Find(id uint64) (schema.Node, error)

Find returns the node for the given ID.

func (*Map) UseRegistry

func (m *Map) UseRegistry(reg *schemas.Registry)

UseRegistry assigns 'reg' to 'm' and initializes the nodes map.

Jump to

Keyboard shortcuts

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