/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ // This file automatically generated by: // Apache Etch 1.1.0-incubating (LOCAL-0) / go 1.1.0-incubating (LOCAL-0) // Thu Nov 18 15:39:28 CET 2010 // This file is automatically created and should not be edited! package org_apache_etch_examples_helloworld import "etch" func SetStubHelpers_StubHelloWorldClient (dvf etch.ValueFactory) { SetStubHelpers_StubHelloWorld() if dvf.GetTypeByName("org.apache.etch.examples.helloworld.HelloWorld.f").StubHelper == nil { dvf.GetTypeByName("org.apache.etch.examples.helloworld.HelloWorld.f").StubHelper = new(_mt_org_apache_etch_examples_helloworld_HelloWorld_fHelper) } } type _mt_org_apache_etch_examples_helloworld_HelloWorld_fHelper struct{} func (dh *_mt_org_apache_etch_examples_helloworld_HelloWorld_fHelper) Run(svc etch.DeliveryService, impl interface{}, sender interface{}, msg *etch.Message) { rmsg := msg.Reply() di := impl.(*ImplHelloWorldClient) x := msg.Vf.(*ValueFactoryHelloWorld)._mf_x ; val_x := msg.Fields[x] var x_param int32 = etch.Toint32(val_x) ret := di.f(x_param) rmsg.Put(msg.Vf.GetDefaultResponseField(), ret) svc.TransportMessage(sender, rmsg) }