mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
fix rpc no-route errors, fix fileopen in preview (#313)
This commit is contained in:
@@ -132,6 +132,12 @@ func RemoteFileInfoCommand(w *wshutil.WshRpc, data string, opts *wshrpc.RpcOpts)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
// command "remotefilejoin", wshserver.RemoteFileJoinCommand
|
||||
func RemoteFileJoinCommand(w *wshutil.WshRpc, data []string, opts *wshrpc.RpcOpts) (*wshrpc.FileInfo, error) {
|
||||
resp, err := sendRpcRequestCallHelper[*wshrpc.FileInfo](w, "remotefilejoin", data, opts)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
// command "remotestreamcpudata", wshserver.RemoteStreamCpuDataCommand
|
||||
func RemoteStreamCpuDataCommand(w *wshutil.WshRpc, opts *wshrpc.RpcOpts) chan wshrpc.RespOrErrorUnion[wshrpc.TimeSeriesData] {
|
||||
return sendRpcRequestResponseStreamHelper[wshrpc.TimeSeriesData](w, "remotestreamcpudata", nil, opts)
|
||||
|
||||
Reference in New Issue
Block a user