Ping implements RuntimeService
(ctx context.Context, req *runtimev1.PingRequest)
| 117 | |
| 118 | // Ping implements RuntimeService |
| 119 | func (s *Server) Ping(ctx context.Context, req *runtimev1.PingRequest) (*runtimev1.PingResponse, error) { |
| 120 | resp := &runtimev1.PingResponse{ |
| 121 | Version: s.runtime.Version().String(), |
| 122 | Time: timestamppb.New(time.Now()), |
| 123 | } |
| 124 | return resp, nil |
| 125 | } |
| 126 | |
| 127 | // Starts the HTTP server. |
| 128 | func (s *Server) ServeHTTP(ctx context.Context, registerAdditionalHandlers func(mux *http.ServeMux), local bool) error { |