mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-07-09 19:46:58 +00:00
feat(rpc): port RPC repo to bazel monorepo
This commit is contained in:
parent
e33e6f8574
commit
2d919c6053
17 changed files with 111 additions and 82 deletions
|
@ -1,7 +1,7 @@
|
|||
load("@rules_proto//proto:defs.bzl", "proto_library")
|
||||
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
|
||||
load("@rules_typescript_proto//:index.bzl", "typescript_proto_library")
|
||||
load("//:hack/tsproto.bzl", "ts_proto")
|
||||
|
||||
proto_library(
|
||||
name = "auth_proto",
|
||||
|
@ -23,7 +23,6 @@ go_library(
|
|||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
typescript_proto_library(
|
||||
name = "ts",
|
||||
ts_proto(
|
||||
proto = ":auth_proto",
|
||||
)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
load("@rules_proto//proto:defs.bzl", "proto_library")
|
||||
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
|
||||
load("@rules_typescript_proto//:index.bzl", "typescript_proto_library")
|
||||
load("//:hack/tsproto.bzl", "ts_proto")
|
||||
|
||||
proto_library(
|
||||
name = "backend_proto",
|
||||
|
@ -32,7 +32,6 @@ go_library(
|
|||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
typescript_proto_library(
|
||||
name = "ts",
|
||||
ts_proto(
|
||||
proto = ":backend_proto",
|
||||
)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
load("@rules_proto//proto:defs.bzl", "proto_library")
|
||||
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
|
||||
load("@rules_typescript_proto//:index.bzl", "typescript_proto_library")
|
||||
load("//:hack/tsproto.bzl", "ts_proto")
|
||||
|
||||
proto_library(
|
||||
name = "client_proto",
|
||||
|
@ -10,7 +10,6 @@ proto_library(
|
|||
deps = [
|
||||
"//src/rpc/auth:auth_proto",
|
||||
"//src/rpc/shared:shared_proto",
|
||||
"@com_google_protobuf//:empty_proto",
|
||||
],
|
||||
)
|
||||
|
||||
|
@ -33,7 +32,6 @@ go_library(
|
|||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
typescript_proto_library(
|
||||
name = "ts",
|
||||
ts_proto(
|
||||
proto = ":client_proto",
|
||||
)
|
||||
|
|
|
@ -4,12 +4,12 @@ package roleypoly.auth.client;
|
|||
option go_package = "github.com/roleypoly/roleypoly/src/auth/client";
|
||||
|
||||
import "src/rpc/shared/internal.proto";
|
||||
import "google/protobuf/empty.proto";
|
||||
import "src/rpc/shared/shared.proto";
|
||||
import "src/rpc/auth/shared.proto";
|
||||
|
||||
service AuthClient {
|
||||
rpc GetClientToken(google.protobuf.Empty) returns (roleypoly.auth.Token) {}
|
||||
rpc GetUserSession(google.protobuf.Empty) returns (roleypoly.RoleypolySession) {}
|
||||
rpc GetClientToken(roleypoly.Empty) returns (roleypoly.auth.Token) {}
|
||||
rpc GetUserSession(roleypoly.Empty) returns (roleypoly.RoleypolySession) {}
|
||||
rpc ResolveSessionKey(roleypoly.auth.Token) returns (roleypoly.auth.Token) {}
|
||||
rpc AuthorizeChallenge(roleypoly.auth.AuthChallenge) returns (roleypoly.auth.Token) {}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue