cache

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LevelOpts = metrics.GaugeOpts{
		Namespace:    "idemix",
		Name:         "cache_level",
		Help:         "Level of the idemix cache",
		LabelNames:   []string{"network", "channel", "namespace"},
		StatsdFormat: "%{#fqname}.%{network}.%{channel}.%{namespace}",
	}
)

Functions

This section is empty.

Types

type IdentityCache

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

func NewIdentityCache

func NewIdentityCache(backed IdentityCacheBackendFunc, size int, auditInfo []byte, metrics *Metrics) *IdentityCache

func (*IdentityCache) Identity

func (c *IdentityCache) Identity(ctx context.Context, auditInfo []byte) (driver.Identity, []byte, error)

type IdentityCacheBackendFunc

type IdentityCacheBackendFunc func(ctx context.Context, auditInfo []byte) (driver.Identity, []byte, error)

type Metrics

type Metrics struct {
	CacheLevelGauge metrics.Gauge
}

Metrics contains the metrics for this package

func NewMetrics

func NewMetrics(p metrics.Provider) *Metrics

NewMetrics instantiate the metrics for this package

Jump to

Keyboard shortcuts

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