mirror of
https://github.com/cirruslabs/orchard.git
synced 2026-10-21 10:45:25 +02:00
Introduce WebSocket-based RPC v2 (#239)
* Introduce WebSocket-based RPC v2 * go test: add -ldflags="-B gobuildid" * No need to change the "controller.workerNotifier.Notify()" error message * No need to modify Protocol Buffers/gRPC generated code * rpcWatch(): explain that connection shouldn't be normally be closed * Avoid "port forwarding failed: " repetition in error messages * Improve comments and avoid repetition in IP resolution errors
This commit is contained in:
@@ -15,8 +15,17 @@ func (controller *Controller) controllerInfo(ctx *gin.Context) responder.Respond
|
||||
return responder
|
||||
}
|
||||
|
||||
capabilities := []v1pkg.ControllerCapability{
|
||||
v1pkg.ControllerCapabilityRPCV1,
|
||||
}
|
||||
|
||||
if controller.experimentalRPCV2 {
|
||||
capabilities = append(capabilities, v1pkg.ControllerCapabilityRPCV2)
|
||||
}
|
||||
|
||||
return responder.JSON(http.StatusOK, &v1pkg.ControllerInfo{
|
||||
Version: version.Version,
|
||||
Commit: version.Commit,
|
||||
Version: version.Version,
|
||||
Commit: version.Commit,
|
||||
Capabilities: capabilities,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user