mirror of
https://github.com/vacp2p/research.git
synced 2025-02-23 19:58:30 +00:00
Sketch out NS service proto
This commit is contained in:
parent
6bf6d38c6d
commit
06490462d9
31
remote_log/hello-twirp/ns_service.proto
Normal file
31
remote_log/hello-twirp/ns_service.proto
Normal file
@ -0,0 +1,31 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package vac.ns;
|
||||
|
||||
// Should be compatible with Swarm Feeds, IPFS IPNS, ENS, and DNS.
|
||||
|
||||
// Name System (NS) service definition
|
||||
service NS {
|
||||
rpc Update(NameUpdate) returns (Response) {}
|
||||
rpc Fetch(Query) returns (Content) {}
|
||||
}
|
||||
|
||||
// TODO: NameInit?
|
||||
|
||||
message NameUpdate {
|
||||
string name = 1;
|
||||
bytes content = 1;
|
||||
}
|
||||
|
||||
message Query {
|
||||
string name = 1;
|
||||
}
|
||||
|
||||
message Content {
|
||||
bytes data = 1;
|
||||
}
|
||||
|
||||
// XXX: Anything? Ok/Error
|
||||
message Response{
|
||||
bytes data = 1;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user