-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from castaneai/connect-rpc
Connect RPC
- Loading branch information
Showing
35 changed files
with
2,925 additions
and
221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
syntax = "proto3"; | ||
|
||
package openmatch; | ||
|
||
import "openmatch/messages.proto"; | ||
import "google/protobuf/empty.proto"; | ||
|
||
message CreateTicketRequest { | ||
Ticket ticket = 1; | ||
} | ||
|
||
message DeleteTicketRequest { | ||
string ticket_id = 1; | ||
} | ||
|
||
message GetTicketRequest { | ||
string ticket_id = 1; | ||
} | ||
|
||
message WatchAssignmentsRequest { | ||
string ticket_id = 1; | ||
} | ||
|
||
message WatchAssignmentsResponse { | ||
Assignment assignment = 1; | ||
} | ||
|
||
message AcknowledgeBackfillRequest { | ||
string backfill_id = 1; | ||
Assignment assignment = 2; | ||
} | ||
|
||
message AcknowledgeBackfillResponse { | ||
Backfill backfill = 1; | ||
repeated Ticket tickets = 2; | ||
} | ||
|
||
message CreateBackfillRequest { | ||
Backfill backfill = 1; | ||
} | ||
|
||
message DeleteBackfillRequest { | ||
string backfill_id = 1; | ||
} | ||
|
||
message GetBackfillRequest { | ||
string backfill_id = 1; | ||
} | ||
|
||
message UpdateBackfillRequest { | ||
Backfill backfill = 1; | ||
} | ||
|
||
service FrontendService { | ||
rpc CreateTicket(CreateTicketRequest) returns (Ticket); | ||
rpc DeleteTicket(DeleteTicketRequest) returns (google.protobuf.Empty); | ||
rpc GetTicket(GetTicketRequest) returns (Ticket); | ||
rpc WatchAssignments(WatchAssignmentsRequest) returns (stream WatchAssignmentsResponse); | ||
rpc AcknowledgeBackfill(AcknowledgeBackfillRequest) returns (AcknowledgeBackfillResponse); | ||
rpc CreateBackfill(CreateBackfillRequest) returns (Backfill); | ||
rpc DeleteBackfill(DeleteBackfillRequest) returns (google.protobuf.Empty); | ||
rpc GetBackfill(GetBackfillRequest) returns (Backfill); | ||
rpc UpdateBackfill(UpdateBackfillRequest) returns (Backfill); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
syntax = "proto3"; | ||
|
||
package openmatch; | ||
|
||
import "google/protobuf/any.proto"; | ||
import "google/protobuf/timestamp.proto"; | ||
|
||
message Ticket { | ||
string id = 1; | ||
Assignment assignment = 3; | ||
SearchFields search_fields = 4; | ||
map<string, google.protobuf.Any> extensions = 5; | ||
map<string, google.protobuf.Any> persistent_field = 6; | ||
google.protobuf.Timestamp create_time = 7; | ||
reserved 2; | ||
} | ||
|
||
message SearchFields { | ||
map<string, double> double_args = 1; | ||
map<string, string> string_args = 2; | ||
repeated string tags = 3; | ||
} | ||
|
||
message Assignment { | ||
string connection = 1; | ||
map<string, google.protobuf.Any> extensions = 4; | ||
reserved 2, 3; | ||
} | ||
|
||
message DoubleRangeFilter { | ||
string double_arg = 1; | ||
double max = 2; | ||
double min = 3; | ||
enum Exclude { | ||
NONE = 0; | ||
MIN = 1; | ||
MAX = 2; | ||
BOTH = 3; | ||
} | ||
Exclude exclude = 4; | ||
} | ||
|
||
message StringEqualsFilter { | ||
string string_arg = 1; | ||
string value = 2; | ||
} | ||
|
||
message TagPresentFilter { | ||
string tag = 1; | ||
} | ||
|
||
message Pool { | ||
string name = 1; | ||
repeated DoubleRangeFilter double_range_filters = 2; | ||
repeated StringEqualsFilter string_equals_filters = 4; | ||
repeated TagPresentFilter tag_present_filters = 5; | ||
google.protobuf.Timestamp created_before = 6; | ||
google.protobuf.Timestamp created_after = 7; | ||
reserved 3; | ||
} | ||
|
||
message MatchProfile { | ||
string name = 1; | ||
repeated Pool pools = 3; | ||
map<string, google.protobuf.Any> extensions = 5; | ||
reserved 2, 4; | ||
} | ||
|
||
message Match { | ||
string match_id = 1; | ||
string match_profile = 2; | ||
string match_function = 3; | ||
repeated Ticket tickets = 4; | ||
map<string, google.protobuf.Any> extensions = 7; | ||
Backfill backfill = 8; | ||
bool allocate_gameserver = 9; | ||
reserved 5, 6; | ||
} | ||
|
||
message Backfill { | ||
string id = 1; | ||
SearchFields search_fields = 2; | ||
map<string, google.protobuf.Any> extensions = 3; | ||
map<string, google.protobuf.Any> persistent_field = 4; | ||
google.protobuf.Timestamp create_time = 5; | ||
int64 generation = 6; | ||
} | ||
|
||
message AssignmentGroup { | ||
repeated string ticket_ids = 1; | ||
Assignment assignment = 2; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
# aqua - Declarative CLI Version Manager | ||
# https://aquaproj.github.io/ | ||
# checksum: | ||
# enabled: true | ||
# require_checksum: true | ||
# supported_envs: | ||
# - all | ||
registries: | ||
- type: standard | ||
ref: v4.248.0 # renovate: depName=aquaproj/aqua-registry | ||
packages: | ||
- name: bufbuild/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
version: v2 | ||
managed: | ||
enabled: true | ||
override: | ||
- file_option: go_package_prefix | ||
value: github.com/castaneai/minimatch/gen | ||
plugins: | ||
- remote: buf.build/connectrpc/go:v1.17.0 | ||
out: gen | ||
opt: | ||
- paths=source_relative | ||
# dependencies | ||
- remote: buf.build/protocolbuffers/go:v1.34.2 | ||
out: gen | ||
opt: | ||
- paths=source_relative |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# For details on buf.yaml configuration, visit https://buf.build/docs/configuration/v2/buf-yaml | ||
version: v2 | ||
lint: | ||
use: | ||
- STANDARD | ||
breaking: | ||
use: | ||
- FILE | ||
modules: | ||
- path: api |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.