tracecacheextension

package module
v0.0.0-...-d741f38 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() extension.Factory

Types

type Config

type Config struct {
	Enable bool `mapstructure:"enable"`

	CleanTime time.Duration `mapstructure:"clean_time"`
}

type RWMap

type RWMap[K comparable, V any] struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewRWMap

func NewRWMap[K comparable, V any]() *RWMap[K, V]

func (*RWMap[K, V]) Delete

func (m *RWMap[K, V]) Delete(key K)

func (*RWMap[K, V]) Load

func (m *RWMap[K, V]) Load(key K) (V, bool)

func (*RWMap[K, V]) LoadOrStore

func (m *RWMap[K, V]) LoadOrStore(key K, value V) (V, bool)

type TraceCacheExtension

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

func (*TraceCacheExtension) CacheTrace

func (*TraceCacheExtension) HasConnector

func (tce *TraceCacheExtension) HasConnector() bool

func (*TraceCacheExtension) IsEnable

func (tce *TraceCacheExtension) IsEnable() bool

func (*TraceCacheExtension) SetConnector

func (tce *TraceCacheExtension) SetConnector(connector tracecache.Connector)

func (*TraceCacheExtension) SetSampler

func (tce *TraceCacheExtension) SetSampler(sampler tracecache.Sampler) error

func (*TraceCacheExtension) Shutdown

func (tce *TraceCacheExtension) Shutdown(context.Context) error

func (*TraceCacheExtension) Start

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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