blob: 7cae33904af2dd2868db39bae3e4cecbcf7a4e6a [file]
/*
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)
// Wed Nov 17 11:24:26 CET 2010
// This file is automatically created for your convenience and will not be
// overwritten once it exists! Please edit this file as necessary to implement
// your service logic.
package org_apache_etch_examples_helloworld
import "fmt"
type ImplHelloWorldServer struct {
HelloWorldServer_base
}
//ADD YOUR IMPLEMENTATIONS FOR SERVER/CLIENT SIDE METHODS HERE AS
// func (f *ImplHelloWorldServer) your_method(p param1, ...) {
// //your code goes here
// }
//default implementation for methods can be found in HelloWorldServer_base.go
func (base *ImplHelloWorldServer) say_hello (to_whom *User) string {
fmt.Printf("HELLO " + fmt.Sprint(to_whom) + "\n")
val := base.TheClient.F(to_whom.Id)
fmt.Printf("F on client callback done...\n")
return "Hello World to " + fmt.Sprint(to_whom.Name) + ", your answer was " + fmt.Sprint(val)
}
func (base *ImplHelloWorldServer) oneway ( ) {
//nothing to do
}
func (base *ImplHelloWorldServer) twoway ( ) {
//nothing to do
}
func (base *ImplHelloWorldServer) simpleArrayTest (ints []int32) {
fmt.Printf("simpleArrayTest: got " + fmt.Sprint(ints) + "\n")
}
func (base *ImplHelloWorldServer) structArrayTest (users []*User) {
for _, u := range users {
fmt.Printf("structArrayTest got: " + fmt.Sprint(u) + "\n")
}
}