예제 #1
0
// Call - Calls action through tcp/json.
func (c *Client) Call(name string, contexts ...action.Map) (result action.Map, err error) {
	return c.Run(&action.Action{Name: name, Ctx: action.Flat(contexts...)})
}
예제 #2
0
// Call - Calls an action by name with flattened context.
func (core *Core) Call(name string, contexts ...action.Map) (action.Map, error) {
	return core.Run(&action.Action{Name: name, Ctx: action.Flat(contexts...)})
}
예제 #3
0
// Call - Calls action through http.
func (c *Client) Call(name string, contexts ...action.Map) (result action.Map, err error) {
	return c.post("/run/"+name, action.Flat(contexts...))
}