mirror of https://github.com/dtm-labs/dtm.git
csharpjavadistributed-transactionsdtmgogolangmicroservicenodejsphpdatabasesagaseatatcctransactiontransactionsxapythondistributed
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
464 B
19 lines
464 B
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
|
|
}
|
|
|