Skip to content

Commit

Permalink
setup health check server
Browse files Browse the repository at this point in the history
  • Loading branch information
Daiki Muroga authored and Daiki Muroga committed Jun 10, 2022
1 parent e029f92 commit 7509006
Show file tree
Hide file tree
Showing 21 changed files with 2,794 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@ docker-build:
.PHONY: watch-log
watch-log:
@docker-compose -f docker-compose.local.yml logs -f blockchain

.PHONY: gen-proto
gen-proto:
@sh ./script/generate-proto.sh
16 changes: 16 additions & 0 deletions api/proto/health/health_service.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
syntax = "proto2";

package proto;

import "google/api/annotations.proto";
import "google/protobuf/empty.proto";

option go_package = "./;healthpb";

service Health {
rpc Check(google.protobuf.Empty) returns (google.protobuf.Empty) {
option (google.api.http) = {
get : "/health"
};
};
}
76 changes: 76 additions & 0 deletions api/proto/health/healthpb/health_service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

154 changes: 154 additions & 0 deletions api/proto/health/healthpb/health_service.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

104 changes: 104 additions & 0 deletions api/proto/health/healthpb/health_service_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 31 additions & 0 deletions api/proto/third_party/google/api/annotations.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// Copyright (c) 2015, Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

syntax = "proto3";

package google.api;

import "google/api/http.proto";
import "google/protobuf/descriptor.proto";

option go_package = "google.golang.org/genproto/googleapis/api/annotations;annotations";
option java_multiple_files = true;
option java_outer_classname = "AnnotationsProto";
option java_package = "com.google.api";
option objc_class_prefix = "GAPI";

extend google.protobuf.MethodOptions {
// See `HttpRule`.
HttpRule http = 72295728;
}
Loading

0 comments on commit 7509006

Please sign in to comment.