namespace

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package namespace provides namespace functionality for the matcher.

Index

Constants

This section is empty.

Variables

View Source
var (

	// Default is the default Resolver.
	Default = NewResolver(defaultNamespaceTag, defaultNamespaceValue)
)

Functions

func NewTestID

func NewTestID(id, namespace string) id.ID

NewTestID creates a new ID for testing that always returns the namespace for TagValue.

Types

type Resolver

type Resolver interface {
	// Resolve the namespace value.
	Resolve(id id.ID) []byte
}

Resolver resolves a namespace value from an encoded metric id.

func NewResolver

func NewResolver(namespaceTag, defaultNamespace []byte) Resolver

NewResolver creates a new Resolver.

Jump to

Keyboard shortcuts

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