forked from TrueCloudLab/neoneo-go
examples: extend iterator with more storage options
This commit is contained in:
parent
4c4e9c0371
commit
1d1b4d4c18
2 changed files with 13 additions and 0 deletions
|
@ -22,3 +22,12 @@ func NotifyKeysAndValues() bool {
|
|||
}
|
||||
return true
|
||||
}
|
||||
|
||||
// NotifyValues sends notification with `foo` storage values.
|
||||
func NotifyValues() bool {
|
||||
iter := storage.Find(storage.GetContext(), []byte("foo"), storage.ValuesOnly)
|
||||
for iterator.Next(iter) {
|
||||
runtime.Notify("Value", iterator.Value(iter))
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
|
|
@ -6,3 +6,7 @@ events:
|
|||
parameters:
|
||||
- name: value
|
||||
type: Any
|
||||
- name: Value
|
||||
parameters:
|
||||
- name: value
|
||||
type: Any
|
||||
|
|
Loading…
Reference in a new issue