8 lines
245 B
Go
8 lines
245 B
Go
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 }
|
|
}
|