2020-03-04 10:09:19 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
2020-03-04 21:12:38 +00:00
|
|
|
proto "edb/proto"
|
2020-03-04 10:09:19 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// server is used to implement
|
|
|
|
type server struct{}
|
|
|
|
|
|
|
|
// SayHello implements
|
2020-03-04 21:12:38 +00:00
|
|
|
func (s *server) SayHello(ctx context.Context, in *proto.TableRequest) (*proto.TableReply, error) {
|
|
|
|
return &proto.TableReply{Msg: "Hello " + in.Name}, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// SayHello implements
|
|
|
|
func (s *server) CreateTable(ctx context.Context, in *proto.TableRequest) (*proto.TableReply, error) {
|
|
|
|
return &proto.TableReply{Msg: "Hello " + in.Name}, nil
|
2020-03-04 10:09:19 +00:00
|
|
|
}
|