Skip to content

Commit 0096c0b

Browse files
committed
Adds ListInstanceIDs & GetInstanceHistory APIs
Implements these new methods implementing dapr/proposals#93 Signed-off-by: joshvanl <[email protected]>
1 parent a7103a2 commit 0096c0b

File tree

18 files changed

+1291
-372
lines changed

18 files changed

+1291
-372
lines changed

api/orchestration.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ type PurgeOptions func(*protos.PurgeInstancesRequest) error
7070

7171
type RerunOptions func(*protos.RerunWorkflowFromEventRequest) error
7272

73+
type ListInstanceIDsOptions func(*protos.ListInstanceIDsRequest) error
74+
75+
type GetInstanceHistoryOptions func(*protos.GetInstanceHistoryRequest) error
76+
7377
// WithInstanceID configures an explicit orchestration instance ID. If not specified,
7478
// a random UUID value will be used for the orchestration instance ID.
7579
func WithInstanceID(id InstanceID) NewOrchestrationOptions {
@@ -221,3 +225,17 @@ func WithRerunNewInstanceID(id InstanceID) RerunOptions {
221225
return nil
222226
}
223227
}
228+
229+
func WithListInstanceIDsPageSize(pageSize uint32) ListInstanceIDsOptions {
230+
return func(req *protos.ListInstanceIDsRequest) error {
231+
req.PageSize = &pageSize
232+
return nil
233+
}
234+
}
235+
236+
func WithListInstanceIDsContinuationToken(token string) ListInstanceIDsOptions {
237+
return func(req *protos.ListInstanceIDsRequest) error {
238+
req.ContinuationToken = &token
239+
return nil
240+
}
241+
}

api/protos/backend_service.pb.go

Lines changed: 57 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/protos/backend_service_grpc.pb.go

Lines changed: 75 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)