コード例 #1
0
ファイル: json.go プロジェクト: crackcomm/go-actions
// 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
ファイル: core.go プロジェクト: crackcomm/go-actions
// 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
ファイル: http.go プロジェクト: crackcomm/go-actions
// 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...))
}