Skip to content

Commit

Permalink
init user and blog code merge
Browse files Browse the repository at this point in the history
  • Loading branch information
linehk committed Feb 17, 2024
2 parents 966bd0f + d3d3e3a commit 2778844
Show file tree
Hide file tree
Showing 18 changed files with 63 additions and 1,283 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
- run:
go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
- uses: codecov/codecov-action@v3
with:
file: ./coverage.txt
verbose: true
#on: [push]
#jobs:
# build:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-go@v4
# with:
# go-version-file: 'go.mod'
# - run:
# go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
# - uses: codecov/codecov-action@v3
# with:
# file: ./coverage.txt
# verbose: true
File renamed without changes.
16 changes: 16 additions & 0 deletions api/protobuf/comment.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
syntax = "proto3";

package comment;
option go_package="./comment";

message Request {
string ping = 1;
}

message Response {
string pong = 1;
}

service Comment {
rpc Ping(Request) returns(Response);
}
16 changes: 16 additions & 0 deletions api/protobuf/page.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
syntax = "proto3";

package page;
option go_package="./page";

message Request {
string ping = 1;
}

message Response {
string pong = 1;
}

service Page {
rpc Ping(Request) returns(Response);
}
16 changes: 16 additions & 0 deletions api/protobuf/post.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
syntax = "proto3";

package post;
option go_package="./post";

message Request {
string ping = 1;
}

message Response {
string pong = 1;
}

service Post {
rpc Ping(Request) returns(Response);
}
File renamed without changes.
39 changes: 0 additions & 39 deletions service/blog/rpc/blog.go

This file was deleted.

Loading

0 comments on commit 2778844

Please sign in to comment.