This repository has been archived by the owner on Nov 14, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #126 from mesg-foundation/feature/update-proto
Update core api to latest version
- Loading branch information
Showing
13 changed files
with
365 additions
and
115 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
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
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
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
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
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
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
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 |
---|---|---|
@@ -1,21 +1,36 @@ | ||
syntax = "proto3"; | ||
|
||
import "google/protobuf/struct.proto"; | ||
import "gogo/protobuf/gogoproto/gogo.proto"; | ||
|
||
package types; | ||
option go_package = "github.com/mesg-foundation/engine/protobuf/types"; | ||
option go_package = "github.com/mesg-foundation/engine/event"; | ||
|
||
option (gogoproto.goproto_getters_all) = false; | ||
|
||
// Event represents a single event run in engine. | ||
message Event { | ||
// Hash is a unique hash to identify event. | ||
bytes hash = 1; | ||
bytes hash = 1 [ | ||
(gogoproto.moretags) = 'hash:"-"', | ||
(gogoproto.customtype) = "github.com/mesg-foundation/engine/hash.Hash", | ||
(gogoproto.nullable) = false | ||
]; | ||
|
||
// instanceHash is hash of instance that can proceed an execution. | ||
bytes instanceHash = 2; | ||
bytes instanceHash = 2 [ | ||
(gogoproto.moretags) = 'hash:"name:2"', | ||
(gogoproto.customtype) = "github.com/mesg-foundation/engine/hash.Hash", | ||
(gogoproto.nullable) = false | ||
]; | ||
|
||
// key is the key of the event. | ||
string key = 3; | ||
string key = 3 [ | ||
(gogoproto.moretags) = 'hash:"name:3"' | ||
]; | ||
|
||
// data is the data for the event. | ||
google.protobuf.Struct data = 4; | ||
google.protobuf.Struct data = 4 [ | ||
(gogoproto.moretags) = 'hash:"name:4"' | ||
]; | ||
} |
Oops, something went wrong.