-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
247 additions
and
1,719 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,31 @@ | ||
syntax = "proto3"; | ||
package limit.subs; | ||
|
||
import "auth.proto"; | ||
import "subs.types.proto"; | ||
|
||
message SubscribableObject { | ||
// subscribable object id | ||
string id = 1; | ||
// public key | ||
string pubkey = 6; | ||
} | ||
|
||
message GetObjectsRequest { | ||
limit.auth.Auth token = 1; | ||
// target subscribable object ids | ||
repeated string ids = 2; | ||
} | ||
|
||
message GetSubscribableObjectsResponse { | ||
repeated SubscribableObject objects = 1; | ||
} | ||
|
||
message GetProfilesResponse { | ||
repeated limit.subs.types.Profile profiles = 1; | ||
} | ||
|
||
service SubsService { | ||
rpc GetSubscribableObjects(GetObjectsRequest) returns (GetSubscribableObjectsResponse); | ||
rpc GetProfiles(GetObjectsRequest) returns (GetProfilesResponse); | ||
} |
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,37 @@ | ||
syntax = "proto3"; | ||
package limit.subs.types; | ||
|
||
import "utils.proto"; | ||
|
||
enum Types { | ||
USER = 0; | ||
GROUP = 1; | ||
} | ||
|
||
message Profile { | ||
// [email protected] | ||
string username = 1; | ||
// subscribable object name | ||
string name = 2; | ||
// intro | ||
string bio = 3; | ||
// avatar link | ||
string avatar = 4; | ||
|
||
oneof detail { | ||
User user = 5; | ||
Group group = 6; | ||
} | ||
} | ||
|
||
message User { | ||
// last seen date | ||
limit.utils.Date last_seen = 1; | ||
// last modified date | ||
limit.utils.Date last_modified = 2; | ||
} | ||
|
||
message Group { | ||
// ids of group members | ||
repeated string members = 1; | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.