rpc_network_crawler_go/server_status.go
jackdaw@loafle.com e1747396da of_rpc => grpc
2017-04-14 18:40:04 +09:00

17 lines
279 B
Go

package main
import(
"golang.org/x/net/context"
pb "loafle.com/overflow/crawler_go/grpc"
)
type StatusServer struct {
}
func (s *StatusServer) Status(c context.Context, in *pb.Empty) (*pb.Boolean, error) {
output := &pb.Boolean{}
output.Check =true
return output, nil
}