edb/api.go
2020-03-05 05:12:38 +08:00

20 lines
483 B
Go

package main
import (
context "context"
proto "edb/proto"
)
// server is used to implement
type server struct{}
// SayHello implements
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
}