metaidx

package
v2.5.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2019 License: Apache-2.0 Imports: 4 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SkeletonMetadata

type SkeletonMetadata struct {
}

SkeletonMetadata represents metadata for skeleton value.

type SkeletonMetadataDto

type SkeletonMetadataDto struct {
	idxmap.NamedMappingEvent
	Metadata *SkeletonMetadata
}

SkeletonMetadataDto represents an item sent through a watch channel.

type SkeletonMetadataIndex

type SkeletonMetadataIndex interface {
	// LookupName looks up previously stored item identified by name in the mapping.
	LookupByName(name string) (metadata *SkeletonMetadata, exists bool)

	// WatchSkeletonMetadata allows to watch for changes in the mapping.
	WatchSkeletonMetadata(subscriber string, channel chan<- SkeletonMetadataDto)
}

SkeletonMetadataIndex provides read-only access to mapping between skeleton values and their metadata.

type SkeletonMetadataIndexRW

type SkeletonMetadataIndexRW interface {
	SkeletonMetadataIndex
	idxmap.NamedMappingRW
}

SkeletonMetadataIndexRW is a mapping between skeleton values and their metadata.

func NewSkeletonIndex

func NewSkeletonIndex(logger logging.Logger, title string) SkeletonMetadataIndexRW

NewSkeletonIndex creates new instance of skeletonMetadataIndex.

Jump to

Keyboard shortcuts

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