This commit is contained in:
crusader
2018-09-04 19:09:15 +09:00
parent fdb2635edc
commit a1ecf315c6
15 changed files with 531 additions and 141 deletions

7
internal/rpc/message.go Normal file
View File

@@ -0,0 +1,7 @@
package rpc
type RPCMessage func() ([]string, string, []interface{})
func MakeRPCMessage(targets []string, method string, params []interface{}) RPCMessage {
return func() ([]string, string, []interface{}) { return targets, method, params }
}