cache

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2025 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 SignatureCache

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

func NewSignatureCache

func NewSignatureCache(c comm.Communication) *SignatureCache

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