Skip to content
This repository was archived by the owner on Dec 28, 2024. It is now read-only.

Commit ed3768e

Browse files
committed
Implement gRPC server
1 parent 223c5be commit ed3768e

File tree

9 files changed

+460
-1
lines changed

9 files changed

+460
-1
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ RUN apk --no-cache add curl
44
FROM golang-with-curl
55
WORKDIR /app
66
COPY go.mod .
7+
COPY go.sum .
78
COPY common common
89

910
ARG DAY

common/proto/adventservice.pb.go

Lines changed: 192 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

common/proto/adventservice.proto

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
syntax = "proto3";
2+
package adventservice;
3+
4+
option go_package = "github.com/terminalnode/adventofcode2024/common/proto";
5+
6+
7+
service AdventService {
8+
rpc SolvePart1 (InputData) returns (InputResponse);
9+
rpc SolvePart2 (InputData) returns (InputResponse);
10+
}
11+
12+
message InputData {
13+
string input = 1;
14+
}
15+
16+
message InputResponse {
17+
string result = 1;
18+
}

common/proto/adventservice_grpc.pb.go

Lines changed: 159 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)