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, metrics Metrics) *SignatureCache
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{})
Click to show internal directories.
Click to hide internal directories.