27 lines
640 B
Go
27 lines
640 B
Go
package goast
|
|
|
|
import "gitter.top/coco/coco/core"
|
|
|
|
type ExampleService struct{}
|
|
|
|
// IDE: ExampleService implemented main.ExampleServiceImpl interface
|
|
var _ main.ExampleServiceImpl = (*ExampleService)(nil)
|
|
|
|
// ExampleCall1 test rpc
|
|
func (receiver *ExampleService) ExampleCall1(ctx *core.Context, req *main.ExampleMessage1) (resp *main.ReturnType, err error) {
|
|
resp = new(main.ReturnType)
|
|
|
|
// TODO impl...
|
|
|
|
return resp, nil
|
|
}
|
|
|
|
// ExampleCall2
|
|
func (receiver *ExampleService) ExampleCall2(ctx *core.Context, req *main.ExampleMessage2) (resp *main.ReturnType, err error) {
|
|
resp = new(main.ReturnType)
|
|
|
|
// TODO impl...
|
|
|
|
return resp, nil
|
|
}
|