Skip to content

Commit

Permalink
Merge branch 'dev' into feature/new-deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
ilgooz committed Jun 3, 2019
2 parents ab82a9f + a41af48 commit 3b7c717
Show file tree
Hide file tree
Showing 5 changed files with 622 additions and 0 deletions.
313 changes: 313 additions & 0 deletions protobuf/api/api.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 36 additions & 0 deletions protobuf/api/api.proto
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;
}

0 comments on commit 3b7c717

Please sign in to comment.