mirror of https://github.com/dtm-labs/dtm.git
1 changed files with 19 additions and 0 deletions
@ -0,0 +1,19 @@ |
|||||
|
package examples |
||||
|
|
||||
|
import ( |
||||
|
"context" |
||||
|
"log" |
||||
|
|
||||
|
dtmcli "github.com/yedf/dtm/dtmcli" |
||||
|
) |
||||
|
|
||||
|
// busiServer is used to implement helloworld.GreeterServer.
|
||||
|
type busiServer struct { |
||||
|
UnimplementedBusiServer |
||||
|
} |
||||
|
|
||||
|
// SayHello implements helloworld.GreeterServer
|
||||
|
func (s *busiServer) Call(ctx context.Context, in *dtmcli.BusiRequest) (*dtmcli.BusiReply, error) { |
||||
|
log.Printf("busiServer received: %v", in) |
||||
|
return &dtmcli.BusiReply{DtmResult: "SUCCESS", DtmMessage: "ok"}, nil |
||||
|
} |
||||
Loading…
Reference in new issue