MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / WithReconnect

Function WithReconnect

pkg/cache/cache.go:94–96  ·  view source on GitHub ↗

WithReconnect provides a channel that signals NATS reconnection events.

(ch <-chan struct{})

Source from the content-addressed store, hash-verified

92
93// WithReconnect provides a channel that signals NATS reconnection events.
94func WithReconnect(ch <-chan struct{}) Option {
95 return func(c *config) { c.reconnCh = ch }
96}
97
98// New creates a new Cache[T]. If NATS options are provided and the connection
99// is non-nil, a NATS KV backend is returned. Otherwise an in-memory LRU is used.

Callers 2

NewFunction · 0.92
NewFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected