mapping

package
v1.0.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTagsCache

func NewTagsCache(loader pcache.LoaderFunc, suffix string, dc *pcache.DiskCache) *pcache.Cache

Types

type AutoCreate

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

func NewAutoCreate

func NewAutoCreate(journal format.MetaStorageInterface, fn AutoCreateFunc) *AutoCreate

func (*AutoCreate) Shutdown

func (ac *AutoCreate) Shutdown()

type AutoCreateFunc

type AutoCreateFunc func(context.Context, tlstatshouse.AutoCreate) error

type Mapper

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

func NewMapper

func NewMapper(suffix string, pmcLoader pcache.LoaderFunc, dc *pcache.DiskCache, ac *AutoCreate, metricMapQueueSize int, mapCallback MapCallbackFunc) *Mapper

func (*Mapper) Map

cb.MetricInfo must be set from journal. If nil, will lookup allowed built-in metric, otherwise set ingestion status not found

func (*Mapper) SetBootstrapValue

func (m *Mapper) SetBootstrapValue(now time.Time, key string, v pcache.Value, ttl time.Duration) error

func (*Mapper) Stop

func (m *Mapper) Stop()

func (*Mapper) TagValueDiskCacheSize

func (m *Mapper) TagValueDiskCacheSize() int

Jump to

Keyboard shortcuts

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