cache

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SIGNATURE_TTL = time.Minute * 10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics added in v1.0.1

type Metrics interface {
	EndProcess(sessionID string)
}

type SignatureCache

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

func NewSignatureCache

func NewSignatureCache(c comm.Communication, metrics Metrics) *SignatureCache

func (*SignatureCache) Remove added in v1.3.3

func (s *SignatureCache) Remove(id string)

func (*SignatureCache) Signature

func (s *SignatureCache) Signature(id string) ([]byte, error)

func (*SignatureCache) Subscribe

func (s *SignatureCache) Subscribe(ctx context.Context, id string, sigChannel chan []byte)

Subscribe watches for new signatures for given id and returns it through the channel

func (*SignatureCache) Watch

func (s *SignatureCache) Watch(ctx context.Context, sigChn chan interface{})

Jump to

Keyboard shortcuts

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