github.com/Asutorufa/yuhaiin@v0.3.6-0.20240502055049-7984da7023a0/pkg/protos/node/latency/latency.proto (about) 1 syntax = "proto3"; 2 3 package yuhaiin.latency; 4 5 option go_package = "github.com/Asutorufa/yuhaiin/pkg/protos/node/latency"; 6 7 import "google/protobuf/duration.proto"; 8 9 message http { string url = 1 [ json_name = "url" ]; } 10 11 message dns { 12 string host = 1 [ json_name = "host" ]; 13 string target_domain = 2 [ json_name = "target_name" ]; 14 } 15 16 message dns_over_quic { 17 string host = 1 [ json_name = "host" ]; 18 string target_domain = 2 [ json_name = "target_name" ]; 19 } 20 21 message protocol { 22 oneof protocol { 23 http http = 1 [ json_name = "http" ]; 24 dns dns = 2 [ json_name = "dns" ]; 25 dns_over_quic dns_over_quic = 3 [ json_name = "dns_over_quic" ]; 26 } 27 } 28 29 message request { 30 string id = 3 [ json_name = "id" ]; 31 string hash = 1 [ json_name = "hash" ]; 32 bool ipv6 = 4 [ json_name = "ipv6" ]; 33 protocol protocol = 2 [ json_name = "protocol" ]; 34 } 35 36 message requests { repeated request requests = 1 [ json_name = "requests" ]; } 37 38 message response { 39 map<string, google.protobuf.Duration> id_latency_map = 1 40 [ json_name = "id_latency_map" ]; 41 }