-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into feature/new-deploy
- Loading branch information
Showing
5 changed files
with
622 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
syntax = "proto3"; | ||
|
||
import "protobuf/definition/execution.proto"; | ||
|
||
package api; | ||
option go_package = "github.com/mesg-foundation/core/protobuf/api"; | ||
|
||
// Execution is the service for handle operations on Execution | ||
// such as get or stream. | ||
service Execution { | ||
// Get returns a single Execution specified in a request. | ||
rpc Get(GetRequest) returns (definition.Execution) {} | ||
|
||
// Stream returns a stream of exeuction that satisfy createria | ||
// specified in a request. | ||
rpc Stream(StreamRequest) returns (stream definition.Execution) {} | ||
} | ||
|
||
// GetRequest defines request to retrive a single execution. | ||
message GetRequest { | ||
bytes hash = 1; | ||
} | ||
|
||
// StreamRequest defines request to retrive a stream of executions. | ||
message StreamRequest{ | ||
// Filter contains filtering cryteria. | ||
message Filter { | ||
// Status for filtering execution by status. | ||
// Note: to filter multiple statues or flags, eg: | ||
// Failed | Completed | ||
definition.Status status = 1; | ||
} | ||
|
||
// Filter used to filter a stream of executions. | ||
Filter filter = 1; | ||
} |
Oops, something went wrong.