-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d11b11a
commit 6cfa7c4
Showing
16 changed files
with
2,189 additions
and
20 deletions.
There are no files selected for viewing
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,31 @@ | ||
syntax = "proto3"; | ||
|
||
package pbufregistry.v1; | ||
|
||
import "google/api/annotations.proto"; | ||
import "pbuf-registry/v1/entities.proto"; | ||
|
||
option go_package = "pbufregistry/api/v1;v1"; | ||
|
||
// The metadata service must return parsed information | ||
service MetadataService { | ||
rpc GetMetadata(GetMetadataRequest) returns (GetMetadataResponse) { | ||
option (google.api.http) = { | ||
post: "/v1/metadata" | ||
body: "*" | ||
}; | ||
} | ||
} | ||
|
||
message GetMetadataRequest { | ||
// The module to get metadata for | ||
string name = 1; | ||
|
||
// The tag id to get metadata for | ||
string tag = 2; | ||
} | ||
|
||
message GetMetadataResponse { | ||
// The packages in the module | ||
repeated Package packages = 1; | ||
} |
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
Oops, something went wrong.