This commit is contained in:
crusader 2017-11-02 15:43:42 +09:00
parent 1374cabeab
commit 9dc7939700
2 changed files with 9 additions and 1 deletions

View File

@ -16,10 +16,17 @@ type StartResponseParam struct {
Result int 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) log.Printf("DiscoveryService.Start param: Name[%s] Count[%d]", req.Name, req.Count)
res := &StartResponseParam{}
res.Result = 10 + req.Count 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 return nil
} }

View File

@ -0,0 +1 @@
package rpc