mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-30 18:00:56 +01:00
重构RPC逻辑
This commit is contained in:
11
backend/entity/rpc.go
Normal file
11
backend/entity/rpc.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package entity
|
||||
|
||||
type RpcMessage struct {
|
||||
Id string `json:"id"`
|
||||
Method string `json:"method"`
|
||||
NodeId string `json:"node_id"`
|
||||
Params map[string]string `json:"params"`
|
||||
Timeout int `json:"timeout"`
|
||||
Result string `json:"result"`
|
||||
Error string `json:"error"`
|
||||
}
|
||||
Reference in New Issue
Block a user