diff --git a/rpc/discovery_service.go b/rpc/discovery_service.go index ec82d3f..5de5024 100644 --- a/rpc/discovery_service.go +++ b/rpc/discovery_service.go @@ -16,10 +16,17 @@ type StartResponseParam struct { Result int } -func (ds *DiscoveryService) Start(req *StartRequestParam, res *StartResponseParam) error { +func (ds *DiscoveryService) Start(req StartRequestParam) (*StartResponseParam, error) { log.Printf("DiscoveryService.Start param: Name[%s] Count[%d]", req.Name, req.Count) + res := &StartResponseParam{} res.Result = 10 + req.Count + return res, nil +} + +func (ds *DiscoveryService) Discovery(name string, req StartRequestParam) error { + log.Printf("DiscoveryService.Discovery param: Name[%s] req[%v]", name, req) + return nil } diff --git a/rpc/rpc.go b/rpc/rpc.go index e69de29..9ab1e3e 100644 --- a/rpc/rpc.go +++ b/rpc/rpc.go @@ -0,0 +1 @@ +package rpc