Skip to content

Commit

Permalink
feat: advertise Tyber server using mDNS
Browse files Browse the repository at this point in the history
Signed-off-by: Guillaume Louvigny <glouvigny@users.noreply.github.com>
  • Loading branch information
glouvigny committed Jul 13, 2021
1 parent f7ec944 commit 173ec9e
Show file tree
Hide file tree
Showing 5 changed files with 195 additions and 2 deletions.
24 changes: 24 additions & 0 deletions api/messengertypes.proto
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ service MessengerService {

// MessageSearch
rpc MessageSearch (MessageSearch.Request) returns (MessageSearch.Reply);

// TyberHostSearch
rpc TyberHostSearch (TyberHostSearch.Request) returns (stream TyberHostSearch.Reply);
// TyberHostAttach
rpc TyberHostAttach (TyberHostAttach.Request) returns (TyberHostAttach.Reply);
}

message PaginatedInteractionsOptions {
Expand Down Expand Up @@ -837,3 +842,22 @@ message MessageSearch {
repeated Interaction results = 1;
}
}

message TyberHostSearch {
message Request {
}
message Reply {
string hostname = 1;
repeated string ipv4 = 2 [(gogoproto.customname) = "IPv4"];
repeated string ipv6 = 3 [(gogoproto.customname) = "IPv6"];
}
}

message TyberHostAttach {
message Request {
repeated string addresses = 1;
}
message Reply {
string address = 1;
}
}
6 changes: 6 additions & 0 deletions api/messengertypes.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 46 additions & 0 deletions docs/apis/messengertypes.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

117 changes: 117 additions & 0 deletions docs/apis/messengertypes.swagger.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/gen.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 173ec9e

Please sign in to comment.