-
Notifications
You must be signed in to change notification settings - Fork 707
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add grpc endpoint to query Mip store info (versioning) * Cargo clippy pass * Add versioning to grpc bridge function * Cargo fmt pass * Add grpc fixes * Rename some field in grpc to be coherent * Rename versioning_mapping.rs -> grpc_mapping.rs * Rename file in lib.rs --------- Co-authored-by: sydhds <sydhds@gmail.com>
- Loading branch information
Showing
20 changed files
with
412 additions
and
4 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
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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// Copyright (c) 2023 MASSA LABS <info@massa.net> | ||
|
||
syntax = "proto3"; | ||
|
||
package massa.api.v1; | ||
|
||
option csharp_namespace = "Com.Massa.Api.V1"; | ||
option go_package = "github.com/massalabs/massa/api/v1;v1"; | ||
option java_multiple_files = true; | ||
option java_package = "com.massa.api.v1"; | ||
option objc_class_prefix = "GRPC"; | ||
option php_namespace = "Com\\Massa\\Api\\V1"; | ||
option ruby_package = "Com::Massa::Api::V1"; | ||
option swift_prefix = "GRPC"; | ||
|
||
// Entry for GetMipStatusResponse | ||
message MipStatusEntry { | ||
// Mip info | ||
MipInfo mip_info = 1; | ||
// state id | ||
ComponentStateId state_id = 2; | ||
} | ||
|
||
// Same as MipInfo struct in versioning package | ||
message MipInfo { | ||
string name = 1; | ||
fixed32 version = 2; | ||
fixed64 start = 3; | ||
fixed64 timeout = 4; | ||
fixed64 activation_delay = 5; | ||
repeated MipComponentEntry components = 6; | ||
} | ||
|
||
message MipComponentEntry { | ||
fixed32 kind = 1; | ||
fixed32 version = 2; | ||
} | ||
|
||
// Same as ComponentStateId enum in versioning package | ||
enum ComponentStateId { | ||
COMPONENT_STATE_ID_UNSPECIFIED = 0; | ||
COMPONENT_STATE_ID_ERROR = 1; | ||
COMPONENT_STATE_ID_DEFINED = 2; | ||
COMPONENT_STATE_ID_STARTED = 3; | ||
COMPONENT_STATE_ID_LOCKEDIN = 4; | ||
COMPONENT_STATE_ID_ACTIVE = 5; | ||
COMPONENT_STATE_ID_FAILED = 6; | ||
} |
Binary file not shown.
Oops, something went wrong.