probe/internal/rpc/message.go

8 lines
245 B
Go
Raw Normal View History

2018-09-04 10:09:15 +00:00
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 }
}