Watch will fire the callback when a key that matches the keys pattern is updated. keys needs to be a valid NATS subject.
(keys string, opts ...WatchOpt)
| 1180 | // Watch will fire the callback when a key that matches the keys pattern is updated. |
| 1181 | // keys needs to be a valid NATS subject. |
| 1182 | func (kv *kvs) Watch(keys string, opts ...WatchOpt) (KeyWatcher, error) { |
| 1183 | return kv.WatchFiltered([]string{keys}, opts...) |
| 1184 | } |
| 1185 | |
| 1186 | // Bucket returns the current bucket name (JetStream stream). |
| 1187 | func (kv *kvs) Bucket() string { |
no test coverage detected