MCPcopy Create free account
hub / github.com/pydio/cells / Watch

Method Watch

common/config/sql/sql.go:240–255  ·  view source on GitHub ↗
(oo ...watch.WatchOption)

Source from the content-addressed store, hash-verified

238}
239
240func (s *SQL) Watch(oo ...watch.WatchOption) (watch.Receiver, error) {
241 opts := &watch.WatchOptions{}
242 for _, o := range oo {
243 o(opts)
244 }
245 r := &receiver{
246 exit: make(chan bool),
247 path: opts.Path,
248 value: s.Val(opts.Path...).Bytes(),
249 updates: make(chan []byte),
250 }
251
252 s.watchers = append(s.watchers, r)
253
254 return r, nil
255}
256
257func (s *SQL) As(out any) bool { return false }
258

Callers

nothing calls this directly

Calls 4

ValMethod · 0.95
makeFunction · 0.85
BytesMethod · 0.65
oFunction · 0.50

Tested by

no test coverage detected