1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-01-23 17:53:05 +02:00
2015-05-09 00:42:07 +01:00

20 lines
416 B
Go

package handler
import (
"code.google.com/p/go.net/context"
log "github.com/golang/glog"
"github.com/myodc/go-micro/server"
example "github.com/myodc/go-micro/template/proto/example"
)
type Example struct{}
func (e *Example) Call(ctx context.Context, req *example.Request, rsp *example.Response) error {
log.Info("Received Example.Call request")
rsp.Msg = server.Id + ": Hello " + req.Name
return nil
}