17 lines
279 B
Go
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
|
||
|
}
|
||
|
|