ing
This commit is contained in:
parent
1374cabeab
commit
9dc7939700
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
package rpc
|
Loading…
Reference in New Issue
Block a user