Skip to content

Commit

Permalink
feat: expose Agent API over HTTP too
Browse files Browse the repository at this point in the history
  • Loading branch information
moul committed Feb 7, 2020
1 parent 7b37aed commit b723226
Show file tree
Hide file tree
Showing 6 changed files with 460 additions and 159 deletions.
6 changes: 3 additions & 3 deletions api/pwapi.proto
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ service Service {
// Agent
//

rpc AgentRegister(AgentRegister.Input) returns (AgentRegister.Output); // agent only
rpc AgentListInstances(AgentListInstances.Input) returns (AgentListInstances.Output); // agent only
rpc AgentUpdateState(AgentUpdateState.Input) returns (AgentUpdateState.Output); // agent only
rpc AgentRegister(AgentRegister.Input) returns (AgentRegister.Output) { option (google.api.http) = {post: "/agent/register"}; }; // agent only
rpc AgentListInstances(AgentListInstances.Input) returns (AgentListInstances.Output) { option (google.api.http) = {get: "/agent/list-instances"}; }; // agent only
rpc AgentUpdateState(AgentUpdateState.Input) returns (AgentUpdateState.Output) { option (google.api.http) = {get: "/agent/update-state"}; }; // agent only
rpc AgentList(AgentList.Input) returns (AgentList.Output); // admin only
// rpc AgentEventSubscribe(AgentEventSubscribe.Input) returns (stream AgentEventSubscribe.Output);
}
Expand Down
2 changes: 1 addition & 1 deletion docs/gen.sum

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

2 changes: 1 addition & 1 deletion go/gen.sum

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

Loading

0 comments on commit b723226

Please sign in to comment.