rpc_network_crawler_go/server_status.go

17 lines
279 B
Go
Raw Normal View History

2017-04-14 09:40:04 +00:00
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
}