summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorn1c00o <n@nc0.fr>2023-02-05 14:03:39 +0100
committerNicolas <34602094+n1c00o@users.noreply.github.com>2023-02-06 22:35:54 +0100
commitf2cbc55b1e06c54e8b69271bbf578f7cff1ba701 (patch)
treed70aa30184dcdd16c7968f40c804126fe5cd4bc6
parent665a7184392959108747dd78d3beaf8b5fdd1093 (diff)
Delete Generation API v2
-rw-r--r--proto/n1c00o/clawflake/v2/clawflake.proto63
1 files changed, 0 insertions, 63 deletions
diff --git a/proto/n1c00o/clawflake/v2/clawflake.proto b/proto/n1c00o/clawflake/v2/clawflake.proto
deleted file mode 100644
index c475488..0000000
--- a/proto/n1c00o/clawflake/v2/clawflake.proto
+++ /dev/null
@@ -1,63 +0,0 @@
-syntax = "proto3";
-
-package n1c00o.clawflake.v2;
-
-import "google/api/annotations.proto";
-import "google/api/http.proto";
-import "google/api/field_behavior.proto";
-import "google/protobuf/timestamp.proto";
-
-option java_package = "dev.n1c00o.clawflake.v2";
-option java_multiple_files = true;
-option java_outer_classname = "ClawflakeProto";
-option go_package = "n1c00o.dev/genproto/clawflake/v2";
-
-// The Clawflake Service.
-//
-// A simple service responsible to generate Clawflake ID numbers.
-service ClawflakeService {
- // Generates a Clawflake ID number.
- rpc GenerateClawflake(GenerateClawflakeRequest) returns (GenerateClawflakeResponse) {
- option (google.api.http) = {
- post: "/v2/clawflakes:generate"
- body: "*"
- };
- }
-
- // Parses a Clawflake ID number.
- rpc DecomposeClawflake(DecomposeClawflakeRequest) returns (DecomposeClawflakeResponse) {
- option (google.api.http) = {
- post: "/v2/clawflakes/{clawflake=*}:decompose"
- body: "*"
- };
- }
-}
-
-// The content of a GenerateClawflake request.
-message GenerateClawflakeRequest {}
-
-// The content of a GenerateClawflake response.
-message GenerateClawflakeResponse {
- // The generated clawflake id number.
- string clawflake = 1;
-}
-
-// The content of a DecomposeClawflake request.
-message DecomposeClawflakeRequest {
- // The clawflake ID number.
- string clawflake = 1 [(google.api.field_behavior) = REQUIRED];
-}
-
-// The content of a DecomposeClawflake response.
-message DecomposeClawflakeResponse {
- // The timestamp composing the Clawflake ID number.
- google.protobuf.Timestamp create_time = 1;
-
- // The worker number composing the Clawflake ID number.
- // A number between 0 and 1024.
- int32 worker = 2;
-
- // The worker specific sequence number.
- // A number between 0 and 4096.
- int32 sequence = 3;
-}