caretta-sync/core/proto/caretta_sync/common.proto

41 lines
552 B
Protocol Buffer
Raw Normal View History

2025-09-27 19:30:17 +09:00
syntax = "proto3";
2025-10-01 08:02:25 +09:00
package caretta_sync;
2025-09-27 19:30:17 +09:00
message PublicKey {
bytes key = 1;
}
2025-09-29 07:44:53 +09:00
message Uuid {
2025-09-30 08:07:17 +09:00
uint64 high_bits = 1;
uint64 low_bits = 2;
2025-09-27 19:30:17 +09:00
}
2025-09-30 08:07:17 +09:00
message Url {
string url = 1;
2025-09-27 19:30:17 +09:00
}
2025-09-30 08:07:17 +09:00
message SocketAddr {
oneof socket_addr {
SocketAddrV4 v4 = 1;
SocketAddrV6 v6 = 2;
2025-09-27 19:30:17 +09:00
}
}
2025-09-29 07:44:53 +09:00
2025-09-30 08:07:17 +09:00
message SocketAddrV4 {
Ipv4Addr ip = 1;
uint32 port = 2;
}
message Ipv4Addr {
uint32 bits = 1;
}
message SocketAddrV6 {
Ipv6Addr ip = 1;
uint32 port = 2;
}
message Ipv6Addr {
uint64 high_bits = 1;
uint64 low_bits = 2;
2025-09-29 07:44:53 +09:00
}