From 0febc461f5a01cc6fbe795f9ee2a9e1a17d9df85 Mon Sep 17 00:00:00 2001 From: Daniel Vigovszky Date: Mon, 21 Oct 2024 11:07:16 +0200 Subject: [PATCH 1/2] Oplog search API --- wit/deps/golem-1.1/golem-oplog-1.1.wit | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wit/deps/golem-1.1/golem-oplog-1.1.wit b/wit/deps/golem-1.1/golem-oplog-1.1.wit index 438d4c0..d756124 100644 --- a/wit/deps/golem-1.1/golem-oplog-1.1.wit +++ b/wit/deps/golem-1.1/golem-oplog-1.1.wit @@ -236,4 +236,9 @@ interface oplog { constructor(worker-id: worker-id, start: oplog-index); get-next: func() -> option>; } + + resource search-oplog { + constructor(worker-id: worker-id, text: string, from: option); + get-next: func() -> option>>; + } } From 71a9d2aa560c487d6e56dcb0f785f249fff91e73 Mon Sep 17 00:00:00 2001 From: Daniel Vigovszky Date: Mon, 21 Oct 2024 11:11:00 +0200 Subject: [PATCH 2/2] Rename parameter --- wit/deps/golem-1.1/golem-oplog-1.1.wit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wit/deps/golem-1.1/golem-oplog-1.1.wit b/wit/deps/golem-1.1/golem-oplog-1.1.wit index d756124..a225d0a 100644 --- a/wit/deps/golem-1.1/golem-oplog-1.1.wit +++ b/wit/deps/golem-1.1/golem-oplog-1.1.wit @@ -238,7 +238,7 @@ interface oplog { } resource search-oplog { - constructor(worker-id: worker-id, text: string, from: option); + constructor(worker-id: worker-id, text: string, older-than: option); get-next: func() -> option>>; } }