File
Blob: spec/protocol/tunnel.pb.go
| 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | // versions: |
| 3 | // protoc-gen-go v1.36.12 |
| 4 | // protoc v7.34.0 |
| 5 | // source: spec/proto/tunnel.proto |
| 6 | |
| 7 | package protocol |
| 8 | |
| 9 | import ( |
| 10 | protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 11 | protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 12 | descriptorpb "google.golang.org/protobuf/types/descriptorpb" |
| 13 | reflect "reflect" |
| 14 | sync "sync" |
| 15 | unsafe "unsafe" |
| 16 | ) |
| 17 | |
| 18 | const ( |
| 19 | // Verify that this generated code is sufficiently up-to-date. |
| 20 | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 21 | // Verify that runtime/protoimpl is sufficiently up-to-date. |
| 22 | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 23 | ) |
| 24 | |
| 25 | type TunnelStatusCode int32 |
| 26 | |
| 27 | const ( |
| 28 | TunnelStatusCode_STATUS_OK TunnelStatusCode = 0 |
| 29 | TunnelStatusCode_UNKNOWN_ERROR TunnelStatusCode = 1 |
| 30 | TunnelStatusCode_NO_DIRECT TunnelStatusCode = 2 |
| 31 | ) |
| 32 | |
| 33 | // Enum value maps for TunnelStatusCode. |
| 34 | var ( |
| 35 | TunnelStatusCode_name = map[int32]string{ |
| 36 | 0: "STATUS_OK", |
| 37 | 1: "UNKNOWN_ERROR", |
| 38 | 2: "NO_DIRECT", |
| 39 | } |
| 40 | TunnelStatusCode_value = map[string]int32{ |
| 41 | "STATUS_OK": 0, |
| 42 | "UNKNOWN_ERROR": 1, |
| 43 | "NO_DIRECT": 2, |
| 44 | } |
| 45 | ) |
| 46 | |
| 47 | func (x TunnelStatusCode) Enum() *TunnelStatusCode { |
| 48 | p := new(TunnelStatusCode) |
| 49 | *p = x |
| 50 | return p |
| 51 | } |
| 52 | |
| 53 | func (x TunnelStatusCode) String() string { |
| 54 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 55 | } |
| 56 | |
| 57 | func (TunnelStatusCode) Descriptor() protoreflect.EnumDescriptor { |
| 58 | return file_spec_proto_tunnel_proto_enumTypes[0].Descriptor() |
| 59 | } |
| 60 | |
| 61 | func (TunnelStatusCode) Type() protoreflect.EnumType { |
| 62 | return &file_spec_proto_tunnel_proto_enumTypes[0] |
| 63 | } |
| 64 | |
| 65 | func (x TunnelStatusCode) Number() protoreflect.EnumNumber { |
| 66 | return protoreflect.EnumNumber(x) |
| 67 | } |
| 68 | |
| 69 | // Deprecated: Use TunnelStatusCode.Descriptor instead. |
| 70 | func (TunnelStatusCode) EnumDescriptor() ([]byte, []int) { |
| 71 | return file_spec_proto_tunnel_proto_rawDescGZIP(), []int{0} |
| 72 | } |
| 73 | |
| 74 | type Link_ALPN int32 |
| 75 | |
| 76 | const ( |
| 77 | Link_UNKNOWN Link_ALPN = 0 |
| 78 | Link_SPECTER_CHORD Link_ALPN = 1 |
| 79 | Link_SPECTER_CLIENT Link_ALPN = 2 |
| 80 | Link_HTTP2 Link_ALPN = 9 |
| 81 | Link_HTTP Link_ALPN = 10 |
| 82 | Link_TCP Link_ALPN = 11 |
| 83 | ) |
| 84 | |
| 85 | // Enum value maps for Link_ALPN. |
| 86 | var ( |
| 87 | Link_ALPN_name = map[int32]string{ |
| 88 | 0: "UNKNOWN", |
| 89 | 1: "SPECTER_CHORD", |
| 90 | 2: "SPECTER_CLIENT", |
| 91 | 9: "HTTP2", |
| 92 | 10: "HTTP", |
| 93 | 11: "TCP", |
| 94 | } |
| 95 | Link_ALPN_value = map[string]int32{ |
| 96 | "UNKNOWN": 0, |
| 97 | "SPECTER_CHORD": 1, |
| 98 | "SPECTER_CLIENT": 2, |
| 99 | "HTTP2": 9, |
| 100 | "HTTP": 10, |
| 101 | "TCP": 11, |
| 102 | } |
| 103 | ) |
| 104 | |
| 105 | func (x Link_ALPN) Enum() *Link_ALPN { |
| 106 | p := new(Link_ALPN) |
| 107 | *p = x |
| 108 | return p |
| 109 | } |
| 110 | |
| 111 | func (x Link_ALPN) String() string { |
| 112 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 113 | } |
| 114 | |
| 115 | func (Link_ALPN) Descriptor() protoreflect.EnumDescriptor { |
| 116 | return file_spec_proto_tunnel_proto_enumTypes[1].Descriptor() |
| 117 | } |
| 118 | |
| 119 | func (Link_ALPN) Type() protoreflect.EnumType { |
| 120 | return &file_spec_proto_tunnel_proto_enumTypes[1] |
| 121 | } |
| 122 | |
| 123 | func (x Link_ALPN) Number() protoreflect.EnumNumber { |
| 124 | return protoreflect.EnumNumber(x) |
| 125 | } |
| 126 | |
| 127 | // Deprecated: Use Link_ALPN.Descriptor instead. |
| 128 | func (Link_ALPN) EnumDescriptor() ([]byte, []int) { |
| 129 | return file_spec_proto_tunnel_proto_rawDescGZIP(), []int{0, 0} |
| 130 | } |
| 131 | |
| 132 | type Link struct { |
| 133 | state protoimpl.MessageState `protogen:"open.v1"` |
| 134 | Alpn Link_ALPN `protobuf:"varint,1,opt,name=alpn,proto3,enum=protocol.Link_ALPN" json:"alpn,omitempty"` |
| 135 | Hostname string `protobuf:"bytes,2,opt,name=hostname,proto3" json:"hostname,omitempty"` |
| 136 | Remote string `protobuf:"bytes,3,opt,name=remote,proto3" json:"remote,omitempty"` |
| 137 | unknownFields protoimpl.UnknownFields |
| 138 | sizeCache protoimpl.SizeCache |
| 139 | } |
| 140 | |
| 141 | func (x *Link) Reset() { |
| 142 | *x = Link{} |
| 143 | mi := &file_spec_proto_tunnel_proto_msgTypes[0] |
| 144 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 145 | ms.StoreMessageInfo(mi) |
| 146 | } |
| 147 | |
| 148 | func (x *Link) String() string { |
| 149 | return protoimpl.X.MessageStringOf(x) |
| 150 | } |
| 151 | |
| 152 | func (*Link) ProtoMessage() {} |
| 153 | |
| 154 | func (x *Link) ProtoReflect() protoreflect.Message { |
| 155 | mi := &file_spec_proto_tunnel_proto_msgTypes[0] |
| 156 | if x != nil { |
| 157 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 158 | if ms.LoadMessageInfo() == nil { |
| 159 | ms.StoreMessageInfo(mi) |
| 160 | } |
| 161 | return ms |
| 162 | } |
| 163 | return mi.MessageOf(x) |
| 164 | } |
| 165 | |
| 166 | // Deprecated: Use Link.ProtoReflect.Descriptor instead. |
| 167 | func (*Link) Descriptor() ([]byte, []int) { |
| 168 | return file_spec_proto_tunnel_proto_rawDescGZIP(), []int{0} |
| 169 | } |
| 170 | |
| 171 | func (x *Link) GetAlpn() Link_ALPN { |
| 172 | if x != nil { |
| 173 | return x.Alpn |
| 174 | } |
| 175 | return Link_UNKNOWN |
| 176 | } |
| 177 | |
| 178 | func (x *Link) GetHostname() string { |
| 179 | if x != nil { |
| 180 | return x.Hostname |
| 181 | } |
| 182 | return "" |
| 183 | } |
| 184 | |
| 185 | func (x *Link) GetRemote() string { |
| 186 | if x != nil { |
| 187 | return x.Remote |
| 188 | } |
| 189 | return "" |
| 190 | } |
| 191 | |
| 192 | type CustomHostname struct { |
| 193 | state protoimpl.MessageState `protogen:"open.v1"` |
| 194 | ClientIdentity *Node `protobuf:"bytes,1,opt,name=client_identity,json=clientIdentity,proto3" json:"client_identity,omitempty"` |
| 195 | ClientToken *ClientToken `protobuf:"bytes,2,opt,name=client_token,json=clientToken,proto3" json:"client_token,omitempty"` |
| 196 | unknownFields protoimpl.UnknownFields |
| 197 | sizeCache protoimpl.SizeCache |
| 198 | } |
| 199 | |
| 200 | func (x *CustomHostname) Reset() { |
| 201 | *x = CustomHostname{} |
| 202 | mi := &file_spec_proto_tunnel_proto_msgTypes[1] |
| 203 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 204 | ms.StoreMessageInfo(mi) |
| 205 | } |
| 206 | |
| 207 | func (x *CustomHostname) String() string { |
| 208 | return protoimpl.X.MessageStringOf(x) |
| 209 | } |
| 210 | |
| 211 | func (*CustomHostname) ProtoMessage() {} |
| 212 | |
| 213 | func (x *CustomHostname) ProtoReflect() protoreflect.Message { |
| 214 | mi := &file_spec_proto_tunnel_proto_msgTypes[1] |
| 215 | if x != nil { |
| 216 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 217 | if ms.LoadMessageInfo() == nil { |
| 218 | ms.StoreMessageInfo(mi) |
| 219 | } |
| 220 | return ms |
| 221 | } |
| 222 | return mi.MessageOf(x) |
| 223 | } |
| 224 | |
| 225 | // Deprecated: Use CustomHostname.ProtoReflect.Descriptor instead. |
| 226 | func (*CustomHostname) Descriptor() ([]byte, []int) { |
| 227 | return file_spec_proto_tunnel_proto_rawDescGZIP(), []int{1} |
| 228 | } |
| 229 | |
| 230 | func (x *CustomHostname) GetClientIdentity() *Node { |
| 231 | if x != nil { |
| 232 | return x.ClientIdentity |
| 233 | } |
| 234 | return nil |
| 235 | } |
| 236 | |
| 237 | func (x *CustomHostname) GetClientToken() *ClientToken { |
| 238 | if x != nil { |
| 239 | return x.ClientToken |
| 240 | } |
| 241 | return nil |
| 242 | } |
| 243 | |
| 244 | type TunnelRoute struct { |
| 245 | state protoimpl.MessageState `protogen:"open.v1"` |
| 246 | ClientDestination *Node `protobuf:"bytes,1,opt,name=client_destination,json=clientDestination,proto3" json:"client_destination,omitempty"` |
| 247 | ChordDestination *Node `protobuf:"bytes,2,opt,name=chord_destination,json=chordDestination,proto3" json:"chord_destination,omitempty"` |
| 248 | TunnelDestination *Node `protobuf:"bytes,3,opt,name=tunnel_destination,json=tunnelDestination,proto3" json:"tunnel_destination,omitempty"` |
| 249 | Hostname string `protobuf:"bytes,10,opt,name=hostname,proto3" json:"hostname,omitempty"` |
| 250 | unknownFields protoimpl.UnknownFields |
| 251 | sizeCache protoimpl.SizeCache |
| 252 | } |
| 253 | |
| 254 | func (x *TunnelRoute) Reset() { |
| 255 | *x = TunnelRoute{} |
| 256 | mi := &file_spec_proto_tunnel_proto_msgTypes[2] |
| 257 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 258 | ms.StoreMessageInfo(mi) |
| 259 | } |
| 260 | |
| 261 | func (x *TunnelRoute) String() string { |
| 262 | return protoimpl.X.MessageStringOf(x) |
| 263 | } |
| 264 | |
| 265 | func (*TunnelRoute) ProtoMessage() {} |
| 266 | |
| 267 | func (x *TunnelRoute) ProtoReflect() protoreflect.Message { |
| 268 | mi := &file_spec_proto_tunnel_proto_msgTypes[2] |
| 269 | if x != nil { |
| 270 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 271 | if ms.LoadMessageInfo() == nil { |
| 272 | ms.StoreMessageInfo(mi) |
| 273 | } |
| 274 | return ms |
| 275 | } |
| 276 | return mi.MessageOf(x) |
| 277 | } |
| 278 | |
| 279 | // Deprecated: Use TunnelRoute.ProtoReflect.Descriptor instead. |
| 280 | func (*TunnelRoute) Descriptor() ([]byte, []int) { |
| 281 | return file_spec_proto_tunnel_proto_rawDescGZIP(), []int{2} |
| 282 | } |
| 283 | |
| 284 | func (x *TunnelRoute) GetClientDestination() *Node { |
| 285 | if x != nil { |
| 286 | return x.ClientDestination |
| 287 | } |
| 288 | return nil |
| 289 | } |
| 290 | |
| 291 | func (x *TunnelRoute) GetChordDestination() *Node { |
| 292 | if x != nil { |
| 293 | return x.ChordDestination |
| 294 | } |
| 295 | return nil |
| 296 | } |
| 297 | |
| 298 | func (x *TunnelRoute) GetTunnelDestination() *Node { |
| 299 | if x != nil { |
| 300 | return x.TunnelDestination |
| 301 | } |
| 302 | return nil |
| 303 | } |
| 304 | |
| 305 | func (x *TunnelRoute) GetHostname() string { |
| 306 | if x != nil { |
| 307 | return x.Hostname |
| 308 | } |
| 309 | return "" |
| 310 | } |
| 311 | |
| 312 | type TunnelDestination struct { |
| 313 | state protoimpl.MessageState `protogen:"open.v1"` |
| 314 | Chord *Node `protobuf:"bytes,1,opt,name=chord,proto3" json:"chord,omitempty"` |
| 315 | Tunnel *Node `protobuf:"bytes,2,opt,name=tunnel,proto3" json:"tunnel,omitempty"` |
| 316 | unknownFields protoimpl.UnknownFields |
| 317 | sizeCache protoimpl.SizeCache |
| 318 | } |
| 319 | |
| 320 | func (x *TunnelDestination) Reset() { |
| 321 | *x = TunnelDestination{} |
| 322 | mi := &file_spec_proto_tunnel_proto_msgTypes[3] |
| 323 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 324 | ms.StoreMessageInfo(mi) |
| 325 | } |
| 326 | |
| 327 | func (x *TunnelDestination) String() string { |
| 328 | return protoimpl.X.MessageStringOf(x) |
| 329 | } |
| 330 | |
| 331 | func (*TunnelDestination) ProtoMessage() {} |
| 332 | |
| 333 | func (x *TunnelDestination) ProtoReflect() protoreflect.Message { |
| 334 | mi := &file_spec_proto_tunnel_proto_msgTypes[3] |
| 335 | if x != nil { |
| 336 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 337 | if ms.LoadMessageInfo() == nil { |
| 338 | ms.StoreMessageInfo(mi) |
| 339 | } |
| 340 | return ms |
| 341 | } |
| 342 | return mi.MessageOf(x) |
| 343 | } |
| 344 | |
| 345 | // Deprecated: Use TunnelDestination.ProtoReflect.Descriptor instead. |
| 346 | func (*TunnelDestination) Descriptor() ([]byte, []int) { |
| 347 | return file_spec_proto_tunnel_proto_rawDescGZIP(), []int{3} |
| 348 | } |
| 349 | |
| 350 | func (x *TunnelDestination) GetChord() *Node { |
| 351 | if x != nil { |
| 352 | return x.Chord |
| 353 | } |
| 354 | return nil |
| 355 | } |
| 356 | |
| 357 | func (x *TunnelDestination) GetTunnel() *Node { |
| 358 | if x != nil { |
| 359 | return x.Tunnel |
| 360 | } |
| 361 | return nil |
| 362 | } |
| 363 | |
| 364 | type TunnelStatus struct { |
| 365 | state protoimpl.MessageState `protogen:"open.v1"` |
| 366 | Status TunnelStatusCode `protobuf:"varint,2,opt,name=status,proto3,enum=protocol.TunnelStatusCode" json:"status,omitempty"` |
| 367 | Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` |
| 368 | unknownFields protoimpl.UnknownFields |
| 369 | sizeCache protoimpl.SizeCache |
| 370 | } |
| 371 | |
| 372 | func (x *TunnelStatus) Reset() { |
| 373 | *x = TunnelStatus{} |
| 374 | mi := &file_spec_proto_tunnel_proto_msgTypes[4] |
| 375 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 376 | ms.StoreMessageInfo(mi) |
| 377 | } |
| 378 | |
| 379 | func (x *TunnelStatus) String() string { |
| 380 | return protoimpl.X.MessageStringOf(x) |
| 381 | } |
| 382 | |
| 383 | func (*TunnelStatus) ProtoMessage() {} |
| 384 | |
| 385 | func (x *TunnelStatus) ProtoReflect() protoreflect.Message { |
| 386 | mi := &file_spec_proto_tunnel_proto_msgTypes[4] |
| 387 | if x != nil { |
| 388 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 389 | if ms.LoadMessageInfo() == nil { |
| 390 | ms.StoreMessageInfo(mi) |
| 391 | } |
| 392 | return ms |
| 393 | } |
| 394 | return mi.MessageOf(x) |
| 395 | } |
| 396 | |
| 397 | // Deprecated: Use TunnelStatus.ProtoReflect.Descriptor instead. |
| 398 | func (*TunnelStatus) Descriptor() ([]byte, []int) { |
| 399 | return file_spec_proto_tunnel_proto_rawDescGZIP(), []int{4} |
| 400 | } |
| 401 | |
| 402 | func (x *TunnelStatus) GetStatus() TunnelStatusCode { |
| 403 | if x != nil { |
| 404 | return x.Status |
| 405 | } |
| 406 | return TunnelStatusCode_STATUS_OK |
| 407 | } |
| 408 | |
| 409 | func (x *TunnelStatus) GetError() string { |
| 410 | if x != nil { |
| 411 | return x.Error |
| 412 | } |
| 413 | return "" |
| 414 | } |
| 415 | |
| 416 | type ClientToken struct { |
| 417 | state protoimpl.MessageState `protogen:"open.v1"` |
| 418 | Token []byte `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` |
| 419 | unknownFields protoimpl.UnknownFields |
| 420 | sizeCache protoimpl.SizeCache |
| 421 | } |
| 422 | |
| 423 | func (x *ClientToken) Reset() { |
| 424 | *x = ClientToken{} |
| 425 | mi := &file_spec_proto_tunnel_proto_msgTypes[5] |
| 426 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 427 | ms.StoreMessageInfo(mi) |
| 428 | } |
| 429 | |
| 430 | func (x *ClientToken) String() string { |
| 431 | return protoimpl.X.MessageStringOf(x) |
| 432 | } |
| 433 | |
| 434 | func (*ClientToken) ProtoMessage() {} |
| 435 | |
| 436 | func (x *ClientToken) ProtoReflect() protoreflect.Message { |
| 437 | mi := &file_spec_proto_tunnel_proto_msgTypes[5] |
| 438 | if x != nil { |
| 439 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 440 | if ms.LoadMessageInfo() == nil { |
| 441 | ms.StoreMessageInfo(mi) |
| 442 | } |
| 443 | return ms |
| 444 | } |
| 445 | return mi.MessageOf(x) |
| 446 | } |
| 447 | |
| 448 | // Deprecated: Use ClientToken.ProtoReflect.Descriptor instead. |
| 449 | func (*ClientToken) Descriptor() ([]byte, []int) { |
| 450 | return file_spec_proto_tunnel_proto_rawDescGZIP(), []int{5} |
| 451 | } |
| 452 | |
| 453 | func (x *ClientToken) GetToken() []byte { |
| 454 | if x != nil { |
| 455 | return x.Token |
| 456 | } |
| 457 | return nil |
| 458 | } |
| 459 | |
| 460 | type ClientPingRequest struct { |
| 461 | state protoimpl.MessageState `protogen:"open.v1"` |
| 462 | unknownFields protoimpl.UnknownFields |
| 463 | sizeCache protoimpl.SizeCache |
| 464 | } |
| 465 | |
| 466 | func (x *ClientPingRequest) Reset() { |
| 467 | *x = ClientPingRequest{} |
| 468 | mi := &file_spec_proto_tunnel_proto_msgTypes[6] |
| 469 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 470 | ms.StoreMessageInfo(mi) |
| 471 | } |
| 472 | |
| 473 | func (x *ClientPingRequest) String() string { |
| 474 | return protoimpl.X.MessageStringOf(x) |
| 475 | } |
| 476 | |
| 477 | func (*ClientPingRequest) ProtoMessage() {} |
| 478 | |
| 479 | func (x *ClientPingRequest) ProtoReflect() protoreflect.Message { |
| 480 | mi := &file_spec_proto_tunnel_proto_msgTypes[6] |
| 481 | if x != nil { |
| 482 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 483 | if ms.LoadMessageInfo() == nil { |
| 484 | ms.StoreMessageInfo(mi) |
| 485 | } |
| 486 | return ms |
| 487 | } |
| 488 | return mi.MessageOf(x) |
| 489 | } |
| 490 | |
| 491 | // Deprecated: Use ClientPingRequest.ProtoReflect.Descriptor instead. |
| 492 | func (*ClientPingRequest) Descriptor() ([]byte, []int) { |
| 493 | return file_spec_proto_tunnel_proto_rawDescGZIP(), []int{6} |
| 494 | } |
| 495 | |
| 496 | type ClientPingResponse struct { |
| 497 | state protoimpl.MessageState `protogen:"open.v1"` |
| 498 | Node *Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` |
| 499 | Apex string `protobuf:"bytes,2,opt,name=apex,proto3" json:"apex,omitempty"` |
| 500 | unknownFields protoimpl.UnknownFields |
| 501 | sizeCache protoimpl.SizeCache |
| 502 | } |
| 503 | |
| 504 | func (x *ClientPingResponse) Reset() { |
| 505 | *x = ClientPingResponse{} |
| 506 | mi := &file_spec_proto_tunnel_proto_msgTypes[7] |
| 507 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 508 | ms.StoreMessageInfo(mi) |
| 509 | } |
| 510 | |
| 511 | func (x *ClientPingResponse) String() string { |
| 512 | return protoimpl.X.MessageStringOf(x) |
| 513 | } |
| 514 | |
| 515 | func (*ClientPingResponse) ProtoMessage() {} |
| 516 | |
| 517 | func (x *ClientPingResponse) ProtoReflect() protoreflect.Message { |
| 518 | mi := &file_spec_proto_tunnel_proto_msgTypes[7] |
| 519 | if x != nil { |
| 520 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 521 | if ms.LoadMessageInfo() == nil { |
| 522 | ms.StoreMessageInfo(mi) |
| 523 | } |
| 524 | return ms |
| 525 | } |
| 526 | return mi.MessageOf(x) |
| 527 | } |
| 528 | |
| 529 | // Deprecated: Use ClientPingResponse.ProtoReflect.Descriptor instead. |
| 530 | func (*ClientPingResponse) Descriptor() ([]byte, []int) { |
| 531 | return file_spec_proto_tunnel_proto_rawDescGZIP(), []int{7} |
| 532 | } |
| 533 | |
| 534 | func (x *ClientPingResponse) GetNode() *Node { |
| 535 | if x != nil { |
| 536 | return x.Node |
| 537 | } |
| 538 | return nil |
| 539 | } |
| 540 | |
| 541 | func (x *ClientPingResponse) GetApex() string { |
| 542 | if x != nil { |
| 543 | return x.Apex |
| 544 | } |
| 545 | return "" |
| 546 | } |
| 547 | |
| 548 | type RegisterIdentityRequest struct { |
| 549 | state protoimpl.MessageState `protogen:"open.v1"` |
| 550 | unknownFields protoimpl.UnknownFields |
| 551 | sizeCache protoimpl.SizeCache |
| 552 | } |
| 553 | |
| 554 | func (x *RegisterIdentityRequest) Reset() { |
| 555 | *x = RegisterIdentityRequest{} |
| 556 | mi := &file_spec_proto_tunnel_proto_msgTypes[8] |
| 557 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 558 | ms.StoreMessageInfo(mi) |
| 559 | } |
| 560 | |
| 561 | func (x *RegisterIdentityRequest) String() string { |
| 562 | return protoimpl.X.MessageStringOf(x) |
| 563 | } |
| 564 | |
| 565 | func (*RegisterIdentityRequest) ProtoMessage() {} |
| 566 | |
| 567 | func (x *RegisterIdentityRequest) ProtoReflect() protoreflect.Message { |
| 568 | mi := &file_spec_proto_tunnel_proto_msgTypes[8] |
| 569 | if x != nil { |
| 570 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 571 | if ms.LoadMessageInfo() == nil { |
| 572 | ms.StoreMessageInfo(mi) |
| 573 | } |
| 574 | return ms |
| 575 | } |
| 576 | return mi.MessageOf(x) |
| 577 | } |
| 578 | |
| 579 | // Deprecated: Use RegisterIdentityRequest.ProtoReflect.Descriptor instead. |
| 580 | func (*RegisterIdentityRequest) Descriptor() ([]byte, []int) { |
| 581 | return file_spec_proto_tunnel_proto_rawDescGZIP(), []int{8} |
| 582 | } |
| 583 | |
| 584 | type RegisterIdentityResponse struct { |
| 585 | state protoimpl.MessageState `protogen:"open.v1"` |
| 586 | Apex string `protobuf:"bytes,2,opt,name=apex,proto3" json:"apex,omitempty"` |
| 587 | unknownFields protoimpl.UnknownFields |
| 588 | sizeCache protoimpl.SizeCache |
| 589 | } |
| 590 | |
| 591 | func (x *RegisterIdentityResponse) Reset() { |
| 592 | *x = RegisterIdentityResponse{} |
| 593 | mi := &file_spec_proto_tunnel_proto_msgTypes[9] |
| 594 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 595 | ms.StoreMessageInfo(mi) |
| 596 | } |
| 597 | |
| 598 | func (x *RegisterIdentityResponse) String() string { |
| 599 | return protoimpl.X.MessageStringOf(x) |
| 600 | } |
| 601 | |
| 602 | func (*RegisterIdentityResponse) ProtoMessage() {} |
| 603 | |
| 604 | func (x *RegisterIdentityResponse) ProtoReflect() protoreflect.Message { |
| 605 | mi := &file_spec_proto_tunnel_proto_msgTypes[9] |
| 606 | if x != nil { |
| 607 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 608 | if ms.LoadMessageInfo() == nil { |
| 609 | ms.StoreMessageInfo(mi) |
| 610 | } |
| 611 | return ms |
| 612 | } |
| 613 | return mi.MessageOf(x) |
| 614 | } |
| 615 | |
| 616 | // Deprecated: Use RegisterIdentityResponse.ProtoReflect.Descriptor instead. |
| 617 | func (*RegisterIdentityResponse) Descriptor() ([]byte, []int) { |
| 618 | return file_spec_proto_tunnel_proto_rawDescGZIP(), []int{9} |
| 619 | } |
| 620 | |
| 621 | func (x *RegisterIdentityResponse) GetApex() string { |
| 622 | if x != nil { |
| 623 | return x.Apex |
| 624 | } |
| 625 | return "" |
| 626 | } |
| 627 | |
| 628 | type GetNodesRequest struct { |
| 629 | state protoimpl.MessageState `protogen:"open.v1"` |
| 630 | unknownFields protoimpl.UnknownFields |
| 631 | sizeCache protoimpl.SizeCache |
| 632 | } |
| 633 | |
| 634 | func (x *GetNodesRequest) Reset() { |
| 635 | *x = GetNodesRequest{} |
| 636 | mi := &file_spec_proto_tunnel_proto_msgTypes[10] |
| 637 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 638 | ms.StoreMessageInfo(mi) |
| 639 | } |
| 640 | |
| 641 | func (x *GetNodesRequest) String() string { |
| 642 | return protoimpl.X.MessageStringOf(x) |
| 643 | } |
| 644 | |
| 645 | func (*GetNodesRequest) ProtoMessage() {} |
| 646 | |
| 647 | func (x *GetNodesRequest) ProtoReflect() protoreflect.Message { |
| 648 | mi := &file_spec_proto_tunnel_proto_msgTypes[10] |
| 649 | if x != nil { |
| 650 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 651 | if ms.LoadMessageInfo() == nil { |
| 652 | ms.StoreMessageInfo(mi) |
| 653 | } |
| 654 | return ms |
| 655 | } |
| 656 | return mi.MessageOf(x) |
| 657 | } |
| 658 | |
| 659 | // Deprecated: Use GetNodesRequest.ProtoReflect.Descriptor instead. |
| 660 | func (*GetNodesRequest) Descriptor() ([]byte, []int) { |
| 661 | return file_spec_proto_tunnel_proto_rawDescGZIP(), []int{10} |
| 662 | } |
| 663 | |
| 664 | type GetNodesResponse struct { |
| 665 | state protoimpl.MessageState `protogen:"open.v1"` |
| 666 | Nodes []*Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"` |
| 667 | unknownFields protoimpl.UnknownFields |
| 668 | sizeCache protoimpl.SizeCache |
| 669 | } |
| 670 | |
| 671 | func (x *GetNodesResponse) Reset() { |
| 672 | *x = GetNodesResponse{} |
| 673 | mi := &file_spec_proto_tunnel_proto_msgTypes[11] |
| 674 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 675 | ms.StoreMessageInfo(mi) |
| 676 | } |
| 677 | |
| 678 | func (x *GetNodesResponse) String() string { |
| 679 | return protoimpl.X.MessageStringOf(x) |
| 680 | } |
| 681 | |
| 682 | func (*GetNodesResponse) ProtoMessage() {} |
| 683 | |
| 684 | func (x *GetNodesResponse) ProtoReflect() protoreflect.Message { |
| 685 | mi := &file_spec_proto_tunnel_proto_msgTypes[11] |
| 686 | if x != nil { |
| 687 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 688 | if ms.LoadMessageInfo() == nil { |
| 689 | ms.StoreMessageInfo(mi) |
| 690 | } |
| 691 | return ms |
| 692 | } |
| 693 | return mi.MessageOf(x) |
| 694 | } |
| 695 | |
| 696 | // Deprecated: Use GetNodesResponse.ProtoReflect.Descriptor instead. |
| 697 | func (*GetNodesResponse) Descriptor() ([]byte, []int) { |
| 698 | return file_spec_proto_tunnel_proto_rawDescGZIP(), []int{11} |
| 699 | } |
| 700 | |
| 701 | func (x *GetNodesResponse) GetNodes() []*Node { |
| 702 | if x != nil { |
| 703 | return x.Nodes |
| 704 | } |
| 705 | return nil |
| 706 | } |
| 707 | |
| 708 | type GenerateHostnameRequest struct { |
| 709 | state protoimpl.MessageState `protogen:"open.v1"` |
| 710 | unknownFields protoimpl.UnknownFields |
| 711 | sizeCache protoimpl.SizeCache |
| 712 | } |
| 713 | |
| 714 | func (x *GenerateHostnameRequest) Reset() { |
| 715 | *x = GenerateHostnameRequest{} |
| 716 | mi := &file_spec_proto_tunnel_proto_msgTypes[12] |
| 717 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 718 | ms.StoreMessageInfo(mi) |
| 719 | } |
| 720 | |
| 721 | func (x *GenerateHostnameRequest) String() string { |
| 722 | return protoimpl.X.MessageStringOf(x) |
| 723 | } |
| 724 | |
| 725 | func (*GenerateHostnameRequest) ProtoMessage() {} |
| 726 | |
| 727 | func (x *GenerateHostnameRequest) ProtoReflect() protoreflect.Message { |
| 728 | mi := &file_spec_proto_tunnel_proto_msgTypes[12] |
| 729 | if x != nil { |
| 730 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 731 | if ms.LoadMessageInfo() == nil { |
| 732 | ms.StoreMessageInfo(mi) |
| 733 | } |
| 734 | return ms |
| 735 | } |
| 736 | return mi.MessageOf(x) |
| 737 | } |
| 738 | |
| 739 | // Deprecated: Use GenerateHostnameRequest.ProtoReflect.Descriptor instead. |
| 740 | func (*GenerateHostnameRequest) Descriptor() ([]byte, []int) { |
| 741 | return file_spec_proto_tunnel_proto_rawDescGZIP(), []int{12} |
| 742 | } |
| 743 | |
| 744 | type GenerateHostnameResponse struct { |
| 745 | state protoimpl.MessageState `protogen:"open.v1"` |
| 746 | Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"` |
| 747 | unknownFields protoimpl.UnknownFields |
| 748 | sizeCache protoimpl.SizeCache |
| 749 | } |
| 750 | |
| 751 | func (x *GenerateHostnameResponse) Reset() { |
| 752 | *x = GenerateHostnameResponse{} |
| 753 | mi := &file_spec_proto_tunnel_proto_msgTypes[13] |
| 754 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 755 | ms.StoreMessageInfo(mi) |
| 756 | } |
| 757 | |
| 758 | func (x *GenerateHostnameResponse) String() string { |
| 759 | return protoimpl.X.MessageStringOf(x) |
| 760 | } |
| 761 | |
| 762 | func (*GenerateHostnameResponse) ProtoMessage() {} |
| 763 | |
| 764 | func (x *GenerateHostnameResponse) ProtoReflect() protoreflect.Message { |
| 765 | mi := &file_spec_proto_tunnel_proto_msgTypes[13] |
| 766 | if x != nil { |
| 767 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 768 | if ms.LoadMessageInfo() == nil { |
| 769 | ms.StoreMessageInfo(mi) |
| 770 | } |
| 771 | return ms |
| 772 | } |
| 773 | return mi.MessageOf(x) |
| 774 | } |
| 775 | |
| 776 | // Deprecated: Use GenerateHostnameResponse.ProtoReflect.Descriptor instead. |
| 777 | func (*GenerateHostnameResponse) Descriptor() ([]byte, []int) { |
| 778 | return file_spec_proto_tunnel_proto_rawDescGZIP(), []int{13} |
| 779 | } |
| 780 | |
| 781 | func (x *GenerateHostnameResponse) GetHostname() string { |
| 782 | if x != nil { |
| 783 | return x.Hostname |
| 784 | } |
| 785 | return "" |
| 786 | } |
| 787 | |
| 788 | type RegisteredHostnamesRequest struct { |
| 789 | state protoimpl.MessageState `protogen:"open.v1"` |
| 790 | unknownFields protoimpl.UnknownFields |
| 791 | sizeCache protoimpl.SizeCache |
| 792 | } |
| 793 | |
| 794 | func (x *RegisteredHostnamesRequest) Reset() { |
| 795 | *x = RegisteredHostnamesRequest{} |
| 796 | mi := &file_spec_proto_tunnel_proto_msgTypes[14] |
| 797 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 798 | ms.StoreMessageInfo(mi) |
| 799 | } |
| 800 | |
| 801 | func (x *RegisteredHostnamesRequest) String() string { |
| 802 | return protoimpl.X.MessageStringOf(x) |
| 803 | } |
| 804 | |
| 805 | func (*RegisteredHostnamesRequest) ProtoMessage() {} |
| 806 | |
| 807 | func (x *RegisteredHostnamesRequest) ProtoReflect() protoreflect.Message { |
| 808 | mi := &file_spec_proto_tunnel_proto_msgTypes[14] |
| 809 | if x != nil { |
| 810 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 811 | if ms.LoadMessageInfo() == nil { |
| 812 | ms.StoreMessageInfo(mi) |
| 813 | } |
| 814 | return ms |
| 815 | } |
| 816 | return mi.MessageOf(x) |
| 817 | } |
| 818 | |
| 819 | // Deprecated: Use RegisteredHostnamesRequest.ProtoReflect.Descriptor instead. |
| 820 | func (*RegisteredHostnamesRequest) Descriptor() ([]byte, []int) { |
| 821 | return file_spec_proto_tunnel_proto_rawDescGZIP(), []int{14} |
| 822 | } |
| 823 | |
| 824 | type RegisteredHostnamesResponse struct { |
| 825 | state protoimpl.MessageState `protogen:"open.v1"` |
| 826 | Hostnames []string `protobuf:"bytes,1,rep,name=hostnames,proto3" json:"hostnames,omitempty"` |
| 827 | unknownFields protoimpl.UnknownFields |
| 828 | sizeCache protoimpl.SizeCache |
| 829 | } |
| 830 | |
| 831 | func (x *RegisteredHostnamesResponse) Reset() { |
| 832 | *x = RegisteredHostnamesResponse{} |
| 833 | mi := &file_spec_proto_tunnel_proto_msgTypes[15] |
| 834 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 835 | ms.StoreMessageInfo(mi) |
| 836 | } |
| 837 | |
| 838 | func (x *RegisteredHostnamesResponse) String() string { |
| 839 | return protoimpl.X.MessageStringOf(x) |
| 840 | } |
| 841 | |
| 842 | func (*RegisteredHostnamesResponse) ProtoMessage() {} |
| 843 | |
| 844 | func (x *RegisteredHostnamesResponse) ProtoReflect() protoreflect.Message { |
| 845 | mi := &file_spec_proto_tunnel_proto_msgTypes[15] |
| 846 | if x != nil { |
| 847 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 848 | if ms.LoadMessageInfo() == nil { |
| 849 | ms.StoreMessageInfo(mi) |
| 850 | } |
| 851 | return ms |
| 852 | } |
| 853 | return mi.MessageOf(x) |
| 854 | } |
| 855 | |
| 856 | // Deprecated: Use RegisteredHostnamesResponse.ProtoReflect.Descriptor instead. |
| 857 | func (*RegisteredHostnamesResponse) Descriptor() ([]byte, []int) { |
| 858 | return file_spec_proto_tunnel_proto_rawDescGZIP(), []int{15} |
| 859 | } |
| 860 | |
| 861 | func (x *RegisteredHostnamesResponse) GetHostnames() []string { |
| 862 | if x != nil { |
| 863 | return x.Hostnames |
| 864 | } |
| 865 | return nil |
| 866 | } |
| 867 | |
| 868 | type PublishTunnelRequest struct { |
| 869 | state protoimpl.MessageState `protogen:"open.v1"` |
| 870 | Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"` |
| 871 | // servers are tun identities |
| 872 | Servers []*Node `protobuf:"bytes,2,rep,name=servers,proto3" json:"servers,omitempty"` |
| 873 | unknownFields protoimpl.UnknownFields |
| 874 | sizeCache protoimpl.SizeCache |
| 875 | } |
| 876 | |
| 877 | func (x *PublishTunnelRequest) Reset() { |
| 878 | *x = PublishTunnelRequest{} |
| 879 | mi := &file_spec_proto_tunnel_proto_msgTypes[16] |
| 880 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 881 | ms.StoreMessageInfo(mi) |
| 882 | } |
| 883 | |
| 884 | func (x *PublishTunnelRequest) String() string { |
| 885 | return protoimpl.X.MessageStringOf(x) |
| 886 | } |
| 887 | |
| 888 | func (*PublishTunnelRequest) ProtoMessage() {} |
| 889 | |
| 890 | func (x *PublishTunnelRequest) ProtoReflect() protoreflect.Message { |
| 891 | mi := &file_spec_proto_tunnel_proto_msgTypes[16] |
| 892 | if x != nil { |
| 893 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 894 | if ms.LoadMessageInfo() == nil { |
| 895 | ms.StoreMessageInfo(mi) |
| 896 | } |
| 897 | return ms |
| 898 | } |
| 899 | return mi.MessageOf(x) |
| 900 | } |
| 901 | |
| 902 | // Deprecated: Use PublishTunnelRequest.ProtoReflect.Descriptor instead. |
| 903 | func (*PublishTunnelRequest) Descriptor() ([]byte, []int) { |
| 904 | return file_spec_proto_tunnel_proto_rawDescGZIP(), []int{16} |
| 905 | } |
| 906 | |
| 907 | func (x *PublishTunnelRequest) GetHostname() string { |
| 908 | if x != nil { |
| 909 | return x.Hostname |
| 910 | } |
| 911 | return "" |
| 912 | } |
| 913 | |
| 914 | func (x *PublishTunnelRequest) GetServers() []*Node { |
| 915 | if x != nil { |
| 916 | return x.Servers |
| 917 | } |
| 918 | return nil |
| 919 | } |
| 920 | |
| 921 | type PublishTunnelResponse struct { |
| 922 | state protoimpl.MessageState `protogen:"open.v1"` |
| 923 | Published []*Node `protobuf:"bytes,1,rep,name=published,proto3" json:"published,omitempty"` |
| 924 | unknownFields protoimpl.UnknownFields |
| 925 | sizeCache protoimpl.SizeCache |
| 926 | } |
| 927 | |
| 928 | func (x *PublishTunnelResponse) Reset() { |
| 929 | *x = PublishTunnelResponse{} |
| 930 | mi := &file_spec_proto_tunnel_proto_msgTypes[17] |
| 931 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 932 | ms.StoreMessageInfo(mi) |
| 933 | } |
| 934 | |
| 935 | func (x *PublishTunnelResponse) String() string { |
| 936 | return protoimpl.X.MessageStringOf(x) |
| 937 | } |
| 938 | |
| 939 | func (*PublishTunnelResponse) ProtoMessage() {} |
| 940 | |
| 941 | func (x *PublishTunnelResponse) ProtoReflect() protoreflect.Message { |
| 942 | mi := &file_spec_proto_tunnel_proto_msgTypes[17] |
| 943 | if x != nil { |
| 944 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 945 | if ms.LoadMessageInfo() == nil { |
| 946 | ms.StoreMessageInfo(mi) |
| 947 | } |
| 948 | return ms |
| 949 | } |
| 950 | return mi.MessageOf(x) |
| 951 | } |
| 952 | |
| 953 | // Deprecated: Use PublishTunnelResponse.ProtoReflect.Descriptor instead. |
| 954 | func (*PublishTunnelResponse) Descriptor() ([]byte, []int) { |
| 955 | return file_spec_proto_tunnel_proto_rawDescGZIP(), []int{17} |
| 956 | } |
| 957 | |
| 958 | func (x *PublishTunnelResponse) GetPublished() []*Node { |
| 959 | if x != nil { |
| 960 | return x.Published |
| 961 | } |
| 962 | return nil |
| 963 | } |
| 964 | |
| 965 | type UnpublishTunnelRequest struct { |
| 966 | state protoimpl.MessageState `protogen:"open.v1"` |
| 967 | Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"` |
| 968 | unknownFields protoimpl.UnknownFields |
| 969 | sizeCache protoimpl.SizeCache |
| 970 | } |
| 971 | |
| 972 | func (x *UnpublishTunnelRequest) Reset() { |
| 973 | *x = UnpublishTunnelRequest{} |
| 974 | mi := &file_spec_proto_tunnel_proto_msgTypes[18] |
| 975 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 976 | ms.StoreMessageInfo(mi) |
| 977 | } |
| 978 | |
| 979 | func (x *UnpublishTunnelRequest) String() string { |
| 980 | return protoimpl.X.MessageStringOf(x) |
| 981 | } |
| 982 | |
| 983 | func (*UnpublishTunnelRequest) ProtoMessage() {} |
| 984 | |
| 985 | func (x *UnpublishTunnelRequest) ProtoReflect() protoreflect.Message { |
| 986 | mi := &file_spec_proto_tunnel_proto_msgTypes[18] |
| 987 | if x != nil { |
| 988 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 989 | if ms.LoadMessageInfo() == nil { |
| 990 | ms.StoreMessageInfo(mi) |
| 991 | } |
| 992 | return ms |
| 993 | } |
| 994 | return mi.MessageOf(x) |
| 995 | } |
| 996 | |
| 997 | // Deprecated: Use UnpublishTunnelRequest.ProtoReflect.Descriptor instead. |
| 998 | func (*UnpublishTunnelRequest) Descriptor() ([]byte, []int) { |
| 999 | return file_spec_proto_tunnel_proto_rawDescGZIP(), []int{18} |
| 1000 | } |
| 1001 | |
| 1002 | func (x *UnpublishTunnelRequest) GetHostname() string { |
| 1003 | if x != nil { |
| 1004 | return x.Hostname |
| 1005 | } |
| 1006 | return "" |
| 1007 | } |
| 1008 | |
| 1009 | type UnpublishTunnelResponse struct { |
| 1010 | state protoimpl.MessageState `protogen:"open.v1"` |
| 1011 | unknownFields protoimpl.UnknownFields |
| 1012 | sizeCache protoimpl.SizeCache |
| 1013 | } |
| 1014 | |
| 1015 | func (x *UnpublishTunnelResponse) Reset() { |
| 1016 | *x = UnpublishTunnelResponse{} |
| 1017 | mi := &file_spec_proto_tunnel_proto_msgTypes[19] |
| 1018 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1019 | ms.StoreMessageInfo(mi) |
| 1020 | } |
| 1021 | |
| 1022 | func (x *UnpublishTunnelResponse) String() string { |
| 1023 | return protoimpl.X.MessageStringOf(x) |
| 1024 | } |
| 1025 | |
| 1026 | func (*UnpublishTunnelResponse) ProtoMessage() {} |
| 1027 | |
| 1028 | func (x *UnpublishTunnelResponse) ProtoReflect() protoreflect.Message { |
| 1029 | mi := &file_spec_proto_tunnel_proto_msgTypes[19] |
| 1030 | if x != nil { |
| 1031 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1032 | if ms.LoadMessageInfo() == nil { |
| 1033 | ms.StoreMessageInfo(mi) |
| 1034 | } |
| 1035 | return ms |
| 1036 | } |
| 1037 | return mi.MessageOf(x) |
| 1038 | } |
| 1039 | |
| 1040 | // Deprecated: Use UnpublishTunnelResponse.ProtoReflect.Descriptor instead. |
| 1041 | func (*UnpublishTunnelResponse) Descriptor() ([]byte, []int) { |
| 1042 | return file_spec_proto_tunnel_proto_rawDescGZIP(), []int{19} |
| 1043 | } |
| 1044 | |
| 1045 | type ReleaseTunnelRequest struct { |
| 1046 | state protoimpl.MessageState `protogen:"open.v1"` |
| 1047 | Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"` |
| 1048 | unknownFields protoimpl.UnknownFields |
| 1049 | sizeCache protoimpl.SizeCache |
| 1050 | } |
| 1051 | |
| 1052 | func (x *ReleaseTunnelRequest) Reset() { |
| 1053 | *x = ReleaseTunnelRequest{} |
| 1054 | mi := &file_spec_proto_tunnel_proto_msgTypes[20] |
| 1055 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1056 | ms.StoreMessageInfo(mi) |
| 1057 | } |
| 1058 | |
| 1059 | func (x *ReleaseTunnelRequest) String() string { |
| 1060 | return protoimpl.X.MessageStringOf(x) |
| 1061 | } |
| 1062 | |
| 1063 | func (*ReleaseTunnelRequest) ProtoMessage() {} |
| 1064 | |
| 1065 | func (x *ReleaseTunnelRequest) ProtoReflect() protoreflect.Message { |
| 1066 | mi := &file_spec_proto_tunnel_proto_msgTypes[20] |
| 1067 | if x != nil { |
| 1068 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1069 | if ms.LoadMessageInfo() == nil { |
| 1070 | ms.StoreMessageInfo(mi) |
| 1071 | } |
| 1072 | return ms |
| 1073 | } |
| 1074 | return mi.MessageOf(x) |
| 1075 | } |
| 1076 | |
| 1077 | // Deprecated: Use ReleaseTunnelRequest.ProtoReflect.Descriptor instead. |
| 1078 | func (*ReleaseTunnelRequest) Descriptor() ([]byte, []int) { |
| 1079 | return file_spec_proto_tunnel_proto_rawDescGZIP(), []int{20} |
| 1080 | } |
| 1081 | |
| 1082 | func (x *ReleaseTunnelRequest) GetHostname() string { |
| 1083 | if x != nil { |
| 1084 | return x.Hostname |
| 1085 | } |
| 1086 | return "" |
| 1087 | } |
| 1088 | |
| 1089 | type ReleaseTunnelResponse struct { |
| 1090 | state protoimpl.MessageState `protogen:"open.v1"` |
| 1091 | unknownFields protoimpl.UnknownFields |
| 1092 | sizeCache protoimpl.SizeCache |
| 1093 | } |
| 1094 | |
| 1095 | func (x *ReleaseTunnelResponse) Reset() { |
| 1096 | *x = ReleaseTunnelResponse{} |
| 1097 | mi := &file_spec_proto_tunnel_proto_msgTypes[21] |
| 1098 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1099 | ms.StoreMessageInfo(mi) |
| 1100 | } |
| 1101 | |
| 1102 | func (x *ReleaseTunnelResponse) String() string { |
| 1103 | return protoimpl.X.MessageStringOf(x) |
| 1104 | } |
| 1105 | |
| 1106 | func (*ReleaseTunnelResponse) ProtoMessage() {} |
| 1107 | |
| 1108 | func (x *ReleaseTunnelResponse) ProtoReflect() protoreflect.Message { |
| 1109 | mi := &file_spec_proto_tunnel_proto_msgTypes[21] |
| 1110 | if x != nil { |
| 1111 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1112 | if ms.LoadMessageInfo() == nil { |
| 1113 | ms.StoreMessageInfo(mi) |
| 1114 | } |
| 1115 | return ms |
| 1116 | } |
| 1117 | return mi.MessageOf(x) |
| 1118 | } |
| 1119 | |
| 1120 | // Deprecated: Use ReleaseTunnelResponse.ProtoReflect.Descriptor instead. |
| 1121 | func (*ReleaseTunnelResponse) Descriptor() ([]byte, []int) { |
| 1122 | return file_spec_proto_tunnel_proto_rawDescGZIP(), []int{21} |
| 1123 | } |
| 1124 | |
| 1125 | type InstructionRequest struct { |
| 1126 | state protoimpl.MessageState `protogen:"open.v1"` |
| 1127 | Proof *ProofOfWork `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof,omitempty"` |
| 1128 | Hostname string `protobuf:"bytes,2,opt,name=hostname,proto3" json:"hostname,omitempty"` |
| 1129 | unknownFields protoimpl.UnknownFields |
| 1130 | sizeCache protoimpl.SizeCache |
| 1131 | } |
| 1132 | |
| 1133 | func (x *InstructionRequest) Reset() { |
| 1134 | *x = InstructionRequest{} |
| 1135 | mi := &file_spec_proto_tunnel_proto_msgTypes[22] |
| 1136 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1137 | ms.StoreMessageInfo(mi) |
| 1138 | } |
| 1139 | |
| 1140 | func (x *InstructionRequest) String() string { |
| 1141 | return protoimpl.X.MessageStringOf(x) |
| 1142 | } |
| 1143 | |
| 1144 | func (*InstructionRequest) ProtoMessage() {} |
| 1145 | |
| 1146 | func (x *InstructionRequest) ProtoReflect() protoreflect.Message { |
| 1147 | mi := &file_spec_proto_tunnel_proto_msgTypes[22] |
| 1148 | if x != nil { |
| 1149 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1150 | if ms.LoadMessageInfo() == nil { |
| 1151 | ms.StoreMessageInfo(mi) |
| 1152 | } |
| 1153 | return ms |
| 1154 | } |
| 1155 | return mi.MessageOf(x) |
| 1156 | } |
| 1157 | |
| 1158 | // Deprecated: Use InstructionRequest.ProtoReflect.Descriptor instead. |
| 1159 | func (*InstructionRequest) Descriptor() ([]byte, []int) { |
| 1160 | return file_spec_proto_tunnel_proto_rawDescGZIP(), []int{22} |
| 1161 | } |
| 1162 | |
| 1163 | func (x *InstructionRequest) GetProof() *ProofOfWork { |
| 1164 | if x != nil { |
| 1165 | return x.Proof |
| 1166 | } |
| 1167 | return nil |
| 1168 | } |
| 1169 | |
| 1170 | func (x *InstructionRequest) GetHostname() string { |
| 1171 | if x != nil { |
| 1172 | return x.Hostname |
| 1173 | } |
| 1174 | return "" |
| 1175 | } |
| 1176 | |
| 1177 | type InstructionResponse struct { |
| 1178 | state protoimpl.MessageState `protogen:"open.v1"` |
| 1179 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 1180 | Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` |
| 1181 | unknownFields protoimpl.UnknownFields |
| 1182 | sizeCache protoimpl.SizeCache |
| 1183 | } |
| 1184 | |
| 1185 | func (x *InstructionResponse) Reset() { |
| 1186 | *x = InstructionResponse{} |
| 1187 | mi := &file_spec_proto_tunnel_proto_msgTypes[23] |
| 1188 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1189 | ms.StoreMessageInfo(mi) |
| 1190 | } |
| 1191 | |
| 1192 | func (x *InstructionResponse) String() string { |
| 1193 | return protoimpl.X.MessageStringOf(x) |
| 1194 | } |
| 1195 | |
| 1196 | func (*InstructionResponse) ProtoMessage() {} |
| 1197 | |
| 1198 | func (x *InstructionResponse) ProtoReflect() protoreflect.Message { |
| 1199 | mi := &file_spec_proto_tunnel_proto_msgTypes[23] |
| 1200 | if x != nil { |
| 1201 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1202 | if ms.LoadMessageInfo() == nil { |
| 1203 | ms.StoreMessageInfo(mi) |
| 1204 | } |
| 1205 | return ms |
| 1206 | } |
| 1207 | return mi.MessageOf(x) |
| 1208 | } |
| 1209 | |
| 1210 | // Deprecated: Use InstructionResponse.ProtoReflect.Descriptor instead. |
| 1211 | func (*InstructionResponse) Descriptor() ([]byte, []int) { |
| 1212 | return file_spec_proto_tunnel_proto_rawDescGZIP(), []int{23} |
| 1213 | } |
| 1214 | |
| 1215 | func (x *InstructionResponse) GetName() string { |
| 1216 | if x != nil { |
| 1217 | return x.Name |
| 1218 | } |
| 1219 | return "" |
| 1220 | } |
| 1221 | |
| 1222 | func (x *InstructionResponse) GetContent() string { |
| 1223 | if x != nil { |
| 1224 | return x.Content |
| 1225 | } |
| 1226 | return "" |
| 1227 | } |
| 1228 | |
| 1229 | type ValidateRequest struct { |
| 1230 | state protoimpl.MessageState `protogen:"open.v1"` |
| 1231 | Proof *ProofOfWork `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof,omitempty"` |
| 1232 | Hostname string `protobuf:"bytes,2,opt,name=hostname,proto3" json:"hostname,omitempty"` |
| 1233 | unknownFields protoimpl.UnknownFields |
| 1234 | sizeCache protoimpl.SizeCache |
| 1235 | } |
| 1236 | |
| 1237 | func (x *ValidateRequest) Reset() { |
| 1238 | *x = ValidateRequest{} |
| 1239 | mi := &file_spec_proto_tunnel_proto_msgTypes[24] |
| 1240 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1241 | ms.StoreMessageInfo(mi) |
| 1242 | } |
| 1243 | |
| 1244 | func (x *ValidateRequest) String() string { |
| 1245 | return protoimpl.X.MessageStringOf(x) |
| 1246 | } |
| 1247 | |
| 1248 | func (*ValidateRequest) ProtoMessage() {} |
| 1249 | |
| 1250 | func (x *ValidateRequest) ProtoReflect() protoreflect.Message { |
| 1251 | mi := &file_spec_proto_tunnel_proto_msgTypes[24] |
| 1252 | if x != nil { |
| 1253 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1254 | if ms.LoadMessageInfo() == nil { |
| 1255 | ms.StoreMessageInfo(mi) |
| 1256 | } |
| 1257 | return ms |
| 1258 | } |
| 1259 | return mi.MessageOf(x) |
| 1260 | } |
| 1261 | |
| 1262 | // Deprecated: Use ValidateRequest.ProtoReflect.Descriptor instead. |
| 1263 | func (*ValidateRequest) Descriptor() ([]byte, []int) { |
| 1264 | return file_spec_proto_tunnel_proto_rawDescGZIP(), []int{24} |
| 1265 | } |
| 1266 | |
| 1267 | func (x *ValidateRequest) GetProof() *ProofOfWork { |
| 1268 | if x != nil { |
| 1269 | return x.Proof |
| 1270 | } |
| 1271 | return nil |
| 1272 | } |
| 1273 | |
| 1274 | func (x *ValidateRequest) GetHostname() string { |
| 1275 | if x != nil { |
| 1276 | return x.Hostname |
| 1277 | } |
| 1278 | return "" |
| 1279 | } |
| 1280 | |
| 1281 | type ValidateResponse struct { |
| 1282 | state protoimpl.MessageState `protogen:"open.v1"` |
| 1283 | Apex string `protobuf:"bytes,1,opt,name=apex,proto3" json:"apex,omitempty"` |
| 1284 | unknownFields protoimpl.UnknownFields |
| 1285 | sizeCache protoimpl.SizeCache |
| 1286 | } |
| 1287 | |
| 1288 | func (x *ValidateResponse) Reset() { |
| 1289 | *x = ValidateResponse{} |
| 1290 | mi := &file_spec_proto_tunnel_proto_msgTypes[25] |
| 1291 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1292 | ms.StoreMessageInfo(mi) |
| 1293 | } |
| 1294 | |
| 1295 | func (x *ValidateResponse) String() string { |
| 1296 | return protoimpl.X.MessageStringOf(x) |
| 1297 | } |
| 1298 | |
| 1299 | func (*ValidateResponse) ProtoMessage() {} |
| 1300 | |
| 1301 | func (x *ValidateResponse) ProtoReflect() protoreflect.Message { |
| 1302 | mi := &file_spec_proto_tunnel_proto_msgTypes[25] |
| 1303 | if x != nil { |
| 1304 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1305 | if ms.LoadMessageInfo() == nil { |
| 1306 | ms.StoreMessageInfo(mi) |
| 1307 | } |
| 1308 | return ms |
| 1309 | } |
| 1310 | return mi.MessageOf(x) |
| 1311 | } |
| 1312 | |
| 1313 | // Deprecated: Use ValidateResponse.ProtoReflect.Descriptor instead. |
| 1314 | func (*ValidateResponse) Descriptor() ([]byte, []int) { |
| 1315 | return file_spec_proto_tunnel_proto_rawDescGZIP(), []int{25} |
| 1316 | } |
| 1317 | |
| 1318 | func (x *ValidateResponse) GetApex() string { |
| 1319 | if x != nil { |
| 1320 | return x.Apex |
| 1321 | } |
| 1322 | return "" |
| 1323 | } |
| 1324 | |
| 1325 | type DelegationRecord struct { |
| 1326 | state protoimpl.MessageState `protogen:"open.v1"` |
| 1327 | Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` |
| 1328 | Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` |
| 1329 | Owner *ClientToken `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` |
| 1330 | Hostname string `protobuf:"bytes,4,opt,name=hostname,proto3" json:"hostname,omitempty"` |
| 1331 | ExpiresAt int64 `protobuf:"varint,5,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` |
| 1332 | unknownFields protoimpl.UnknownFields |
| 1333 | sizeCache protoimpl.SizeCache |
| 1334 | } |
| 1335 | |
| 1336 | func (x *DelegationRecord) Reset() { |
| 1337 | *x = DelegationRecord{} |
| 1338 | mi := &file_spec_proto_tunnel_proto_msgTypes[26] |
| 1339 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1340 | ms.StoreMessageInfo(mi) |
| 1341 | } |
| 1342 | |
| 1343 | func (x *DelegationRecord) String() string { |
| 1344 | return protoimpl.X.MessageStringOf(x) |
| 1345 | } |
| 1346 | |
| 1347 | func (*DelegationRecord) ProtoMessage() {} |
| 1348 | |
| 1349 | func (x *DelegationRecord) ProtoReflect() protoreflect.Message { |
| 1350 | mi := &file_spec_proto_tunnel_proto_msgTypes[26] |
| 1351 | if x != nil { |
| 1352 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1353 | if ms.LoadMessageInfo() == nil { |
| 1354 | ms.StoreMessageInfo(mi) |
| 1355 | } |
| 1356 | return ms |
| 1357 | } |
| 1358 | return mi.MessageOf(x) |
| 1359 | } |
| 1360 | |
| 1361 | // Deprecated: Use DelegationRecord.ProtoReflect.Descriptor instead. |
| 1362 | func (*DelegationRecord) Descriptor() ([]byte, []int) { |
| 1363 | return file_spec_proto_tunnel_proto_rawDescGZIP(), []int{26} |
| 1364 | } |
| 1365 | |
| 1366 | func (x *DelegationRecord) GetVersion() uint32 { |
| 1367 | if x != nil { |
| 1368 | return x.Version |
| 1369 | } |
| 1370 | return 0 |
| 1371 | } |
| 1372 | |
| 1373 | func (x *DelegationRecord) GetId() string { |
| 1374 | if x != nil { |
| 1375 | return x.Id |
| 1376 | } |
| 1377 | return "" |
| 1378 | } |
| 1379 | |
| 1380 | func (x *DelegationRecord) GetOwner() *ClientToken { |
| 1381 | if x != nil { |
| 1382 | return x.Owner |
| 1383 | } |
| 1384 | return nil |
| 1385 | } |
| 1386 | |
| 1387 | func (x *DelegationRecord) GetHostname() string { |
| 1388 | if x != nil { |
| 1389 | return x.Hostname |
| 1390 | } |
| 1391 | return "" |
| 1392 | } |
| 1393 | |
| 1394 | func (x *DelegationRecord) GetExpiresAt() int64 { |
| 1395 | if x != nil { |
| 1396 | return x.ExpiresAt |
| 1397 | } |
| 1398 | return 0 |
| 1399 | } |
| 1400 | |
| 1401 | type DelegationGrant struct { |
| 1402 | state protoimpl.MessageState `protogen:"open.v1"` |
| 1403 | Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` |
| 1404 | Hostname string `protobuf:"bytes,2,opt,name=hostname,proto3" json:"hostname,omitempty"` |
| 1405 | ExpiresAt int64 `protobuf:"varint,3,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` |
| 1406 | Incomplete bool `protobuf:"varint,4,opt,name=incomplete,proto3" json:"incomplete,omitempty"` |
| 1407 | unknownFields protoimpl.UnknownFields |
| 1408 | sizeCache protoimpl.SizeCache |
| 1409 | } |
| 1410 | |
| 1411 | func (x *DelegationGrant) Reset() { |
| 1412 | *x = DelegationGrant{} |
| 1413 | mi := &file_spec_proto_tunnel_proto_msgTypes[27] |
| 1414 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1415 | ms.StoreMessageInfo(mi) |
| 1416 | } |
| 1417 | |
| 1418 | func (x *DelegationGrant) String() string { |
| 1419 | return protoimpl.X.MessageStringOf(x) |
| 1420 | } |
| 1421 | |
| 1422 | func (*DelegationGrant) ProtoMessage() {} |
| 1423 | |
| 1424 | func (x *DelegationGrant) ProtoReflect() protoreflect.Message { |
| 1425 | mi := &file_spec_proto_tunnel_proto_msgTypes[27] |
| 1426 | if x != nil { |
| 1427 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1428 | if ms.LoadMessageInfo() == nil { |
| 1429 | ms.StoreMessageInfo(mi) |
| 1430 | } |
| 1431 | return ms |
| 1432 | } |
| 1433 | return mi.MessageOf(x) |
| 1434 | } |
| 1435 | |
| 1436 | // Deprecated: Use DelegationGrant.ProtoReflect.Descriptor instead. |
| 1437 | func (*DelegationGrant) Descriptor() ([]byte, []int) { |
| 1438 | return file_spec_proto_tunnel_proto_rawDescGZIP(), []int{27} |
| 1439 | } |
| 1440 | |
| 1441 | func (x *DelegationGrant) GetId() string { |
| 1442 | if x != nil { |
| 1443 | return x.Id |
| 1444 | } |
| 1445 | return "" |
| 1446 | } |
| 1447 | |
| 1448 | func (x *DelegationGrant) GetHostname() string { |
| 1449 | if x != nil { |
| 1450 | return x.Hostname |
| 1451 | } |
| 1452 | return "" |
| 1453 | } |
| 1454 | |
| 1455 | func (x *DelegationGrant) GetExpiresAt() int64 { |
| 1456 | if x != nil { |
| 1457 | return x.ExpiresAt |
| 1458 | } |
| 1459 | return 0 |
| 1460 | } |
| 1461 | |
| 1462 | func (x *DelegationGrant) GetIncomplete() bool { |
| 1463 | if x != nil { |
| 1464 | return x.Incomplete |
| 1465 | } |
| 1466 | return false |
| 1467 | } |
| 1468 | |
| 1469 | type MintDelegationRequest struct { |
| 1470 | state protoimpl.MessageState `protogen:"open.v1"` |
| 1471 | Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"` |
| 1472 | ExpiresAt int64 `protobuf:"varint,2,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` |
| 1473 | unknownFields protoimpl.UnknownFields |
| 1474 | sizeCache protoimpl.SizeCache |
| 1475 | } |
| 1476 | |
| 1477 | func (x *MintDelegationRequest) Reset() { |
| 1478 | *x = MintDelegationRequest{} |
| 1479 | mi := &file_spec_proto_tunnel_proto_msgTypes[28] |
| 1480 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1481 | ms.StoreMessageInfo(mi) |
| 1482 | } |
| 1483 | |
| 1484 | func (x *MintDelegationRequest) String() string { |
| 1485 | return protoimpl.X.MessageStringOf(x) |
| 1486 | } |
| 1487 | |
| 1488 | func (*MintDelegationRequest) ProtoMessage() {} |
| 1489 | |
| 1490 | func (x *MintDelegationRequest) ProtoReflect() protoreflect.Message { |
| 1491 | mi := &file_spec_proto_tunnel_proto_msgTypes[28] |
| 1492 | if x != nil { |
| 1493 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1494 | if ms.LoadMessageInfo() == nil { |
| 1495 | ms.StoreMessageInfo(mi) |
| 1496 | } |
| 1497 | return ms |
| 1498 | } |
| 1499 | return mi.MessageOf(x) |
| 1500 | } |
| 1501 | |
| 1502 | // Deprecated: Use MintDelegationRequest.ProtoReflect.Descriptor instead. |
| 1503 | func (*MintDelegationRequest) Descriptor() ([]byte, []int) { |
| 1504 | return file_spec_proto_tunnel_proto_rawDescGZIP(), []int{28} |
| 1505 | } |
| 1506 | |
| 1507 | func (x *MintDelegationRequest) GetHostname() string { |
| 1508 | if x != nil { |
| 1509 | return x.Hostname |
| 1510 | } |
| 1511 | return "" |
| 1512 | } |
| 1513 | |
| 1514 | func (x *MintDelegationRequest) GetExpiresAt() int64 { |
| 1515 | if x != nil { |
| 1516 | return x.ExpiresAt |
| 1517 | } |
| 1518 | return 0 |
| 1519 | } |
| 1520 | |
| 1521 | type MintDelegationResponse struct { |
| 1522 | state protoimpl.MessageState `protogen:"open.v1"` |
| 1523 | Grant *DelegationGrant `protobuf:"bytes,1,opt,name=grant,proto3" json:"grant,omitempty"` |
| 1524 | Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` |
| 1525 | unknownFields protoimpl.UnknownFields |
| 1526 | sizeCache protoimpl.SizeCache |
| 1527 | } |
| 1528 | |
| 1529 | func (x *MintDelegationResponse) Reset() { |
| 1530 | *x = MintDelegationResponse{} |
| 1531 | mi := &file_spec_proto_tunnel_proto_msgTypes[29] |
| 1532 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1533 | ms.StoreMessageInfo(mi) |
| 1534 | } |
| 1535 | |
| 1536 | func (x *MintDelegationResponse) String() string { |
| 1537 | return protoimpl.X.MessageStringOf(x) |
| 1538 | } |
| 1539 | |
| 1540 | func (*MintDelegationResponse) ProtoMessage() {} |
| 1541 | |
| 1542 | func (x *MintDelegationResponse) ProtoReflect() protoreflect.Message { |
| 1543 | mi := &file_spec_proto_tunnel_proto_msgTypes[29] |
| 1544 | if x != nil { |
| 1545 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1546 | if ms.LoadMessageInfo() == nil { |
| 1547 | ms.StoreMessageInfo(mi) |
| 1548 | } |
| 1549 | return ms |
| 1550 | } |
| 1551 | return mi.MessageOf(x) |
| 1552 | } |
| 1553 | |
| 1554 | // Deprecated: Use MintDelegationResponse.ProtoReflect.Descriptor instead. |
| 1555 | func (*MintDelegationResponse) Descriptor() ([]byte, []int) { |
| 1556 | return file_spec_proto_tunnel_proto_rawDescGZIP(), []int{29} |
| 1557 | } |
| 1558 | |
| 1559 | func (x *MintDelegationResponse) GetGrant() *DelegationGrant { |
| 1560 | if x != nil { |
| 1561 | return x.Grant |
| 1562 | } |
| 1563 | return nil |
| 1564 | } |
| 1565 | |
| 1566 | func (x *MintDelegationResponse) GetToken() string { |
| 1567 | if x != nil { |
| 1568 | return x.Token |
| 1569 | } |
| 1570 | return "" |
| 1571 | } |
| 1572 | |
| 1573 | type ListDelegationsRequest struct { |
| 1574 | state protoimpl.MessageState `protogen:"open.v1"` |
| 1575 | unknownFields protoimpl.UnknownFields |
| 1576 | sizeCache protoimpl.SizeCache |
| 1577 | } |
| 1578 | |
| 1579 | func (x *ListDelegationsRequest) Reset() { |
| 1580 | *x = ListDelegationsRequest{} |
| 1581 | mi := &file_spec_proto_tunnel_proto_msgTypes[30] |
| 1582 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1583 | ms.StoreMessageInfo(mi) |
| 1584 | } |
| 1585 | |
| 1586 | func (x *ListDelegationsRequest) String() string { |
| 1587 | return protoimpl.X.MessageStringOf(x) |
| 1588 | } |
| 1589 | |
| 1590 | func (*ListDelegationsRequest) ProtoMessage() {} |
| 1591 | |
| 1592 | func (x *ListDelegationsRequest) ProtoReflect() protoreflect.Message { |
| 1593 | mi := &file_spec_proto_tunnel_proto_msgTypes[30] |
| 1594 | if x != nil { |
| 1595 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1596 | if ms.LoadMessageInfo() == nil { |
| 1597 | ms.StoreMessageInfo(mi) |
| 1598 | } |
| 1599 | return ms |
| 1600 | } |
| 1601 | return mi.MessageOf(x) |
| 1602 | } |
| 1603 | |
| 1604 | // Deprecated: Use ListDelegationsRequest.ProtoReflect.Descriptor instead. |
| 1605 | func (*ListDelegationsRequest) Descriptor() ([]byte, []int) { |
| 1606 | return file_spec_proto_tunnel_proto_rawDescGZIP(), []int{30} |
| 1607 | } |
| 1608 | |
| 1609 | type ListDelegationsResponse struct { |
| 1610 | state protoimpl.MessageState `protogen:"open.v1"` |
| 1611 | Grants []*DelegationGrant `protobuf:"bytes,1,rep,name=grants,proto3" json:"grants,omitempty"` |
| 1612 | unknownFields protoimpl.UnknownFields |
| 1613 | sizeCache protoimpl.SizeCache |
| 1614 | } |
| 1615 | |
| 1616 | func (x *ListDelegationsResponse) Reset() { |
| 1617 | *x = ListDelegationsResponse{} |
| 1618 | mi := &file_spec_proto_tunnel_proto_msgTypes[31] |
| 1619 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1620 | ms.StoreMessageInfo(mi) |
| 1621 | } |
| 1622 | |
| 1623 | func (x *ListDelegationsResponse) String() string { |
| 1624 | return protoimpl.X.MessageStringOf(x) |
| 1625 | } |
| 1626 | |
| 1627 | func (*ListDelegationsResponse) ProtoMessage() {} |
| 1628 | |
| 1629 | func (x *ListDelegationsResponse) ProtoReflect() protoreflect.Message { |
| 1630 | mi := &file_spec_proto_tunnel_proto_msgTypes[31] |
| 1631 | if x != nil { |
| 1632 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1633 | if ms.LoadMessageInfo() == nil { |
| 1634 | ms.StoreMessageInfo(mi) |
| 1635 | } |
| 1636 | return ms |
| 1637 | } |
| 1638 | return mi.MessageOf(x) |
| 1639 | } |
| 1640 | |
| 1641 | // Deprecated: Use ListDelegationsResponse.ProtoReflect.Descriptor instead. |
| 1642 | func (*ListDelegationsResponse) Descriptor() ([]byte, []int) { |
| 1643 | return file_spec_proto_tunnel_proto_rawDescGZIP(), []int{31} |
| 1644 | } |
| 1645 | |
| 1646 | func (x *ListDelegationsResponse) GetGrants() []*DelegationGrant { |
| 1647 | if x != nil { |
| 1648 | return x.Grants |
| 1649 | } |
| 1650 | return nil |
| 1651 | } |
| 1652 | |
| 1653 | type RevokeDelegationRequest struct { |
| 1654 | state protoimpl.MessageState `protogen:"open.v1"` |
| 1655 | Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` |
| 1656 | unknownFields protoimpl.UnknownFields |
| 1657 | sizeCache protoimpl.SizeCache |
| 1658 | } |
| 1659 | |
| 1660 | func (x *RevokeDelegationRequest) Reset() { |
| 1661 | *x = RevokeDelegationRequest{} |
| 1662 | mi := &file_spec_proto_tunnel_proto_msgTypes[32] |
| 1663 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1664 | ms.StoreMessageInfo(mi) |
| 1665 | } |
| 1666 | |
| 1667 | func (x *RevokeDelegationRequest) String() string { |
| 1668 | return protoimpl.X.MessageStringOf(x) |
| 1669 | } |
| 1670 | |
| 1671 | func (*RevokeDelegationRequest) ProtoMessage() {} |
| 1672 | |
| 1673 | func (x *RevokeDelegationRequest) ProtoReflect() protoreflect.Message { |
| 1674 | mi := &file_spec_proto_tunnel_proto_msgTypes[32] |
| 1675 | if x != nil { |
| 1676 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1677 | if ms.LoadMessageInfo() == nil { |
| 1678 | ms.StoreMessageInfo(mi) |
| 1679 | } |
| 1680 | return ms |
| 1681 | } |
| 1682 | return mi.MessageOf(x) |
| 1683 | } |
| 1684 | |
| 1685 | // Deprecated: Use RevokeDelegationRequest.ProtoReflect.Descriptor instead. |
| 1686 | func (*RevokeDelegationRequest) Descriptor() ([]byte, []int) { |
| 1687 | return file_spec_proto_tunnel_proto_rawDescGZIP(), []int{32} |
| 1688 | } |
| 1689 | |
| 1690 | func (x *RevokeDelegationRequest) GetId() string { |
| 1691 | if x != nil { |
| 1692 | return x.Id |
| 1693 | } |
| 1694 | return "" |
| 1695 | } |
| 1696 | |
| 1697 | type RevokeDelegationResponse struct { |
| 1698 | state protoimpl.MessageState `protogen:"open.v1"` |
| 1699 | Revoked bool `protobuf:"varint,1,opt,name=revoked,proto3" json:"revoked,omitempty"` |
| 1700 | IndexError string `protobuf:"bytes,2,opt,name=index_error,json=indexError,proto3" json:"index_error,omitempty"` |
| 1701 | unknownFields protoimpl.UnknownFields |
| 1702 | sizeCache protoimpl.SizeCache |
| 1703 | } |
| 1704 | |
| 1705 | func (x *RevokeDelegationResponse) Reset() { |
| 1706 | *x = RevokeDelegationResponse{} |
| 1707 | mi := &file_spec_proto_tunnel_proto_msgTypes[33] |
| 1708 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1709 | ms.StoreMessageInfo(mi) |
| 1710 | } |
| 1711 | |
| 1712 | func (x *RevokeDelegationResponse) String() string { |
| 1713 | return protoimpl.X.MessageStringOf(x) |
| 1714 | } |
| 1715 | |
| 1716 | func (*RevokeDelegationResponse) ProtoMessage() {} |
| 1717 | |
| 1718 | func (x *RevokeDelegationResponse) ProtoReflect() protoreflect.Message { |
| 1719 | mi := &file_spec_proto_tunnel_proto_msgTypes[33] |
| 1720 | if x != nil { |
| 1721 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1722 | if ms.LoadMessageInfo() == nil { |
| 1723 | ms.StoreMessageInfo(mi) |
| 1724 | } |
| 1725 | return ms |
| 1726 | } |
| 1727 | return mi.MessageOf(x) |
| 1728 | } |
| 1729 | |
| 1730 | // Deprecated: Use RevokeDelegationResponse.ProtoReflect.Descriptor instead. |
| 1731 | func (*RevokeDelegationResponse) Descriptor() ([]byte, []int) { |
| 1732 | return file_spec_proto_tunnel_proto_rawDescGZIP(), []int{33} |
| 1733 | } |
| 1734 | |
| 1735 | func (x *RevokeDelegationResponse) GetRevoked() bool { |
| 1736 | if x != nil { |
| 1737 | return x.Revoked |
| 1738 | } |
| 1739 | return false |
| 1740 | } |
| 1741 | |
| 1742 | func (x *RevokeDelegationResponse) GetIndexError() string { |
| 1743 | if x != nil { |
| 1744 | return x.IndexError |
| 1745 | } |
| 1746 | return "" |
| 1747 | } |
| 1748 | |
| 1749 | type OpenEphemeralSessionRequest struct { |
| 1750 | state protoimpl.MessageState `protogen:"open.v1"` |
| 1751 | unknownFields protoimpl.UnknownFields |
| 1752 | sizeCache protoimpl.SizeCache |
| 1753 | } |
| 1754 | |
| 1755 | func (x *OpenEphemeralSessionRequest) Reset() { |
| 1756 | *x = OpenEphemeralSessionRequest{} |
| 1757 | mi := &file_spec_proto_tunnel_proto_msgTypes[34] |
| 1758 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1759 | ms.StoreMessageInfo(mi) |
| 1760 | } |
| 1761 | |
| 1762 | func (x *OpenEphemeralSessionRequest) String() string { |
| 1763 | return protoimpl.X.MessageStringOf(x) |
| 1764 | } |
| 1765 | |
| 1766 | func (*OpenEphemeralSessionRequest) ProtoMessage() {} |
| 1767 | |
| 1768 | func (x *OpenEphemeralSessionRequest) ProtoReflect() protoreflect.Message { |
| 1769 | mi := &file_spec_proto_tunnel_proto_msgTypes[34] |
| 1770 | if x != nil { |
| 1771 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1772 | if ms.LoadMessageInfo() == nil { |
| 1773 | ms.StoreMessageInfo(mi) |
| 1774 | } |
| 1775 | return ms |
| 1776 | } |
| 1777 | return mi.MessageOf(x) |
| 1778 | } |
| 1779 | |
| 1780 | // Deprecated: Use OpenEphemeralSessionRequest.ProtoReflect.Descriptor instead. |
| 1781 | func (*OpenEphemeralSessionRequest) Descriptor() ([]byte, []int) { |
| 1782 | return file_spec_proto_tunnel_proto_rawDescGZIP(), []int{34} |
| 1783 | } |
| 1784 | |
| 1785 | type OpenDelegatedSessionRequest struct { |
| 1786 | state protoimpl.MessageState `protogen:"open.v1"` |
| 1787 | Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` |
| 1788 | // Each attachment publishes exactly one of the three numbered routes. |
| 1789 | RouteSlot uint32 `protobuf:"varint,2,opt,name=route_slot,json=routeSlot,proto3" json:"route_slot,omitempty"` |
| 1790 | unknownFields protoimpl.UnknownFields |
| 1791 | sizeCache protoimpl.SizeCache |
| 1792 | } |
| 1793 | |
| 1794 | func (x *OpenDelegatedSessionRequest) Reset() { |
| 1795 | *x = OpenDelegatedSessionRequest{} |
| 1796 | mi := &file_spec_proto_tunnel_proto_msgTypes[35] |
| 1797 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1798 | ms.StoreMessageInfo(mi) |
| 1799 | } |
| 1800 | |
| 1801 | func (x *OpenDelegatedSessionRequest) String() string { |
| 1802 | return protoimpl.X.MessageStringOf(x) |
| 1803 | } |
| 1804 | |
| 1805 | func (*OpenDelegatedSessionRequest) ProtoMessage() {} |
| 1806 | |
| 1807 | func (x *OpenDelegatedSessionRequest) ProtoReflect() protoreflect.Message { |
| 1808 | mi := &file_spec_proto_tunnel_proto_msgTypes[35] |
| 1809 | if x != nil { |
| 1810 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1811 | if ms.LoadMessageInfo() == nil { |
| 1812 | ms.StoreMessageInfo(mi) |
| 1813 | } |
| 1814 | return ms |
| 1815 | } |
| 1816 | return mi.MessageOf(x) |
| 1817 | } |
| 1818 | |
| 1819 | // Deprecated: Use OpenDelegatedSessionRequest.ProtoReflect.Descriptor instead. |
| 1820 | func (*OpenDelegatedSessionRequest) Descriptor() ([]byte, []int) { |
| 1821 | return file_spec_proto_tunnel_proto_rawDescGZIP(), []int{35} |
| 1822 | } |
| 1823 | |
| 1824 | func (x *OpenDelegatedSessionRequest) GetToken() string { |
| 1825 | if x != nil { |
| 1826 | return x.Token |
| 1827 | } |
| 1828 | return "" |
| 1829 | } |
| 1830 | |
| 1831 | func (x *OpenDelegatedSessionRequest) GetRouteSlot() uint32 { |
| 1832 | if x != nil { |
| 1833 | return x.RouteSlot |
| 1834 | } |
| 1835 | return 0 |
| 1836 | } |
| 1837 | |
| 1838 | type OpenSessionResponse struct { |
| 1839 | state protoimpl.MessageState `protogen:"open.v1"` |
| 1840 | Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"` |
| 1841 | Apex string `protobuf:"bytes,2,opt,name=apex,proto3" json:"apex,omitempty"` |
| 1842 | GrantId string `protobuf:"bytes,3,opt,name=grant_id,json=grantId,proto3" json:"grant_id,omitempty"` |
| 1843 | ExpiresAt int64 `protobuf:"varint,4,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` |
| 1844 | Node *Node `protobuf:"bytes,5,opt,name=node,proto3" json:"node,omitempty"` |
| 1845 | unknownFields protoimpl.UnknownFields |
| 1846 | sizeCache protoimpl.SizeCache |
| 1847 | } |
| 1848 | |
| 1849 | func (x *OpenSessionResponse) Reset() { |
| 1850 | *x = OpenSessionResponse{} |
| 1851 | mi := &file_spec_proto_tunnel_proto_msgTypes[36] |
| 1852 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1853 | ms.StoreMessageInfo(mi) |
| 1854 | } |
| 1855 | |
| 1856 | func (x *OpenSessionResponse) String() string { |
| 1857 | return protoimpl.X.MessageStringOf(x) |
| 1858 | } |
| 1859 | |
| 1860 | func (*OpenSessionResponse) ProtoMessage() {} |
| 1861 | |
| 1862 | func (x *OpenSessionResponse) ProtoReflect() protoreflect.Message { |
| 1863 | mi := &file_spec_proto_tunnel_proto_msgTypes[36] |
| 1864 | if x != nil { |
| 1865 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1866 | if ms.LoadMessageInfo() == nil { |
| 1867 | ms.StoreMessageInfo(mi) |
| 1868 | } |
| 1869 | return ms |
| 1870 | } |
| 1871 | return mi.MessageOf(x) |
| 1872 | } |
| 1873 | |
| 1874 | // Deprecated: Use OpenSessionResponse.ProtoReflect.Descriptor instead. |
| 1875 | func (*OpenSessionResponse) Descriptor() ([]byte, []int) { |
| 1876 | return file_spec_proto_tunnel_proto_rawDescGZIP(), []int{36} |
| 1877 | } |
| 1878 | |
| 1879 | func (x *OpenSessionResponse) GetHostname() string { |
| 1880 | if x != nil { |
| 1881 | return x.Hostname |
| 1882 | } |
| 1883 | return "" |
| 1884 | } |
| 1885 | |
| 1886 | func (x *OpenSessionResponse) GetApex() string { |
| 1887 | if x != nil { |
| 1888 | return x.Apex |
| 1889 | } |
| 1890 | return "" |
| 1891 | } |
| 1892 | |
| 1893 | func (x *OpenSessionResponse) GetGrantId() string { |
| 1894 | if x != nil { |
| 1895 | return x.GrantId |
| 1896 | } |
| 1897 | return "" |
| 1898 | } |
| 1899 | |
| 1900 | func (x *OpenSessionResponse) GetExpiresAt() int64 { |
| 1901 | if x != nil { |
| 1902 | return x.ExpiresAt |
| 1903 | } |
| 1904 | return 0 |
| 1905 | } |
| 1906 | |
| 1907 | func (x *OpenSessionResponse) GetNode() *Node { |
| 1908 | if x != nil { |
| 1909 | return x.Node |
| 1910 | } |
| 1911 | return nil |
| 1912 | } |
| 1913 | |
| 1914 | var file_spec_proto_tunnel_proto_extTypes = []protoimpl.ExtensionInfo{ |
| 1915 | { |
| 1916 | ExtendedType: (*descriptorpb.EnumValueOptions)(nil), |
| 1917 | ExtensionType: (*string)(nil), |
| 1918 | Field: 54242, |
| 1919 | Name: "protocol.alpn_name", |
| 1920 | Tag: "bytes,54242,opt,name=alpn_name", |
| 1921 | Filename: "spec/proto/tunnel.proto", |
| 1922 | }, |
| 1923 | } |
| 1924 | |
| 1925 | // Extension fields to descriptorpb.EnumValueOptions. |
| 1926 | var ( |
| 1927 | // optional string alpn_name = 54242; |
| 1928 | E_AlpnName = &file_spec_proto_tunnel_proto_extTypes[0] |
| 1929 | ) |
| 1930 | |
| 1931 | var File_spec_proto_tunnel_proto protoreflect.FileDescriptor |
| 1932 | |
| 1933 | const file_spec_proto_tunnel_proto_rawDesc = "" + |
| 1934 | "\n" + |
| 1935 | "\x17spec/proto/tunnel.proto\x12\bprotocol\x1a\x15spec/proto/node.proto\x1a\x14spec/proto/pow.proto\x1a google/protobuf/descriptor.proto\"\x92\x02\n" + |
| 1936 | "\x04Link\x12'\n" + |
| 1937 | "\x04alpn\x18\x01 \x01(\x0e2\x13.protocol.Link.ALPNR\x04alpn\x12\x1a\n" + |
| 1938 | "\bhostname\x18\x02 \x01(\tR\bhostname\x12\x16\n" + |
| 1939 | "\x06remote\x18\x03 \x01(\tR\x06remote\"\xac\x01\n" + |
| 1940 | "\x04ALPN\x12\v\n" + |
| 1941 | "\aUNKNOWN\x10\x00\x12&\n" + |
| 1942 | "\rSPECTER_CHORD\x10\x01\x1a\x13\x92\xbe\x1a\x0fspecter-chord/1\x12(\n" + |
| 1943 | "\x0eSPECTER_CLIENT\x10\x02\x1a\x14\x92\xbe\x1a\x10specter-client/1\x12\x11\n" + |
| 1944 | "\x05HTTP2\x10\t\x1a\x06\x92\xbe\x1a\x02h2\x12\x16\n" + |
| 1945 | "\x04HTTP\x10\n" + |
| 1946 | "\x1a\f\x92\xbe\x1a\bhttp/1.1\x12\x1a\n" + |
| 1947 | "\x03TCP\x10\v\x1a\x11\x92\xbe\x1a\rspecter-tcp/1\"\x83\x01\n" + |
| 1948 | "\x0eCustomHostname\x127\n" + |
| 1949 | "\x0fclient_identity\x18\x01 \x01(\v2\x0e.protocol.NodeR\x0eclientIdentity\x128\n" + |
| 1950 | "\fclient_token\x18\x02 \x01(\v2\x15.protocol.ClientTokenR\vclientToken\"\xe4\x01\n" + |
| 1951 | "\vTunnelRoute\x12=\n" + |
| 1952 | "\x12client_destination\x18\x01 \x01(\v2\x0e.protocol.NodeR\x11clientDestination\x12;\n" + |
| 1953 | "\x11chord_destination\x18\x02 \x01(\v2\x0e.protocol.NodeR\x10chordDestination\x12=\n" + |
| 1954 | "\x12tunnel_destination\x18\x03 \x01(\v2\x0e.protocol.NodeR\x11tunnelDestination\x12\x1a\n" + |
| 1955 | "\bhostname\x18\n" + |
| 1956 | " \x01(\tR\bhostname\"a\n" + |
| 1957 | "\x11TunnelDestination\x12$\n" + |
| 1958 | "\x05chord\x18\x01 \x01(\v2\x0e.protocol.NodeR\x05chord\x12&\n" + |
| 1959 | "\x06tunnel\x18\x02 \x01(\v2\x0e.protocol.NodeR\x06tunnel\"X\n" + |
| 1960 | "\fTunnelStatus\x122\n" + |
| 1961 | "\x06status\x18\x02 \x01(\x0e2\x1a.protocol.TunnelStatusCodeR\x06status\x12\x14\n" + |
| 1962 | "\x05error\x18\x03 \x01(\tR\x05error\"#\n" + |
| 1963 | "\vClientToken\x12\x14\n" + |
| 1964 | "\x05token\x18\x01 \x01(\fR\x05token\"\x13\n" + |
| 1965 | "\x11ClientPingRequest\"L\n" + |
| 1966 | "\x12ClientPingResponse\x12\"\n" + |
| 1967 | "\x04node\x18\x01 \x01(\v2\x0e.protocol.NodeR\x04node\x12\x12\n" + |
| 1968 | "\x04apex\x18\x02 \x01(\tR\x04apex\"\x19\n" + |
| 1969 | "\x17RegisterIdentityRequest\".\n" + |
| 1970 | "\x18RegisterIdentityResponse\x12\x12\n" + |
| 1971 | "\x04apex\x18\x02 \x01(\tR\x04apex\"\x11\n" + |
| 1972 | "\x0fGetNodesRequest\"8\n" + |
| 1973 | "\x10GetNodesResponse\x12$\n" + |
| 1974 | "\x05nodes\x18\x01 \x03(\v2\x0e.protocol.NodeR\x05nodes\"\x19\n" + |
| 1975 | "\x17GenerateHostnameRequest\"6\n" + |
| 1976 | "\x18GenerateHostnameResponse\x12\x1a\n" + |
| 1977 | "\bhostname\x18\x01 \x01(\tR\bhostname\"\x1c\n" + |
| 1978 | "\x1aRegisteredHostnamesRequest\";\n" + |
| 1979 | "\x1bRegisteredHostnamesResponse\x12\x1c\n" + |
| 1980 | "\thostnames\x18\x01 \x03(\tR\thostnames\"\\\n" + |
| 1981 | "\x14PublishTunnelRequest\x12\x1a\n" + |
| 1982 | "\bhostname\x18\x01 \x01(\tR\bhostname\x12(\n" + |
| 1983 | "\aservers\x18\x02 \x03(\v2\x0e.protocol.NodeR\aservers\"E\n" + |
| 1984 | "\x15PublishTunnelResponse\x12,\n" + |
| 1985 | "\tpublished\x18\x01 \x03(\v2\x0e.protocol.NodeR\tpublished\"4\n" + |
| 1986 | "\x16UnpublishTunnelRequest\x12\x1a\n" + |
| 1987 | "\bhostname\x18\x01 \x01(\tR\bhostname\"\x19\n" + |
| 1988 | "\x17UnpublishTunnelResponse\"2\n" + |
| 1989 | "\x14ReleaseTunnelRequest\x12\x1a\n" + |
| 1990 | "\bhostname\x18\x01 \x01(\tR\bhostname\"\x17\n" + |
| 1991 | "\x15ReleaseTunnelResponse\"]\n" + |
| 1992 | "\x12InstructionRequest\x12+\n" + |
| 1993 | "\x05proof\x18\x01 \x01(\v2\x15.protocol.ProofOfWorkR\x05proof\x12\x1a\n" + |
| 1994 | "\bhostname\x18\x02 \x01(\tR\bhostname\"C\n" + |
| 1995 | "\x13InstructionResponse\x12\x12\n" + |
| 1996 | "\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n" + |
| 1997 | "\acontent\x18\x02 \x01(\tR\acontent\"Z\n" + |
| 1998 | "\x0fValidateRequest\x12+\n" + |
| 1999 | "\x05proof\x18\x01 \x01(\v2\x15.protocol.ProofOfWorkR\x05proof\x12\x1a\n" + |
| 2000 | "\bhostname\x18\x02 \x01(\tR\bhostname\"&\n" + |
| 2001 | "\x10ValidateResponse\x12\x12\n" + |
| 2002 | "\x04apex\x18\x01 \x01(\tR\x04apex\"\xa4\x01\n" + |
| 2003 | "\x10DelegationRecord\x12\x18\n" + |
| 2004 | "\aversion\x18\x01 \x01(\rR\aversion\x12\x0e\n" + |
| 2005 | "\x02id\x18\x02 \x01(\tR\x02id\x12+\n" + |
| 2006 | "\x05owner\x18\x03 \x01(\v2\x15.protocol.ClientTokenR\x05owner\x12\x1a\n" + |
| 2007 | "\bhostname\x18\x04 \x01(\tR\bhostname\x12\x1d\n" + |
| 2008 | "\n" + |
| 2009 | "expires_at\x18\x05 \x01(\x03R\texpiresAt\"|\n" + |
| 2010 | "\x0fDelegationGrant\x12\x0e\n" + |
| 2011 | "\x02id\x18\x01 \x01(\tR\x02id\x12\x1a\n" + |
| 2012 | "\bhostname\x18\x02 \x01(\tR\bhostname\x12\x1d\n" + |
| 2013 | "\n" + |
| 2014 | "expires_at\x18\x03 \x01(\x03R\texpiresAt\x12\x1e\n" + |
| 2015 | "\n" + |
| 2016 | "incomplete\x18\x04 \x01(\bR\n" + |
| 2017 | "incomplete\"R\n" + |
| 2018 | "\x15MintDelegationRequest\x12\x1a\n" + |
| 2019 | "\bhostname\x18\x01 \x01(\tR\bhostname\x12\x1d\n" + |
| 2020 | "\n" + |
| 2021 | "expires_at\x18\x02 \x01(\x03R\texpiresAt\"_\n" + |
| 2022 | "\x16MintDelegationResponse\x12/\n" + |
| 2023 | "\x05grant\x18\x01 \x01(\v2\x19.protocol.DelegationGrantR\x05grant\x12\x14\n" + |
| 2024 | "\x05token\x18\x02 \x01(\tR\x05token\"\x18\n" + |
| 2025 | "\x16ListDelegationsRequest\"L\n" + |
| 2026 | "\x17ListDelegationsResponse\x121\n" + |
| 2027 | "\x06grants\x18\x01 \x03(\v2\x19.protocol.DelegationGrantR\x06grants\")\n" + |
| 2028 | "\x17RevokeDelegationRequest\x12\x0e\n" + |
| 2029 | "\x02id\x18\x01 \x01(\tR\x02id\"U\n" + |
| 2030 | "\x18RevokeDelegationResponse\x12\x18\n" + |
| 2031 | "\arevoked\x18\x01 \x01(\bR\arevoked\x12\x1f\n" + |
| 2032 | "\vindex_error\x18\x02 \x01(\tR\n" + |
| 2033 | "indexError\"\x1d\n" + |
| 2034 | "\x1bOpenEphemeralSessionRequest\"R\n" + |
| 2035 | "\x1bOpenDelegatedSessionRequest\x12\x14\n" + |
| 2036 | "\x05token\x18\x01 \x01(\tR\x05token\x12\x1d\n" + |
| 2037 | "\n" + |
| 2038 | "route_slot\x18\x02 \x01(\rR\trouteSlot\"\xa3\x01\n" + |
| 2039 | "\x13OpenSessionResponse\x12\x1a\n" + |
| 2040 | "\bhostname\x18\x01 \x01(\tR\bhostname\x12\x12\n" + |
| 2041 | "\x04apex\x18\x02 \x01(\tR\x04apex\x12\x19\n" + |
| 2042 | "\bgrant_id\x18\x03 \x01(\tR\agrantId\x12\x1d\n" + |
| 2043 | "\n" + |
| 2044 | "expires_at\x18\x04 \x01(\x03R\texpiresAt\x12\"\n" + |
| 2045 | "\x04node\x18\x05 \x01(\v2\x0e.protocol.NodeR\x04node*C\n" + |
| 2046 | "\x10TunnelStatusCode\x12\r\n" + |
| 2047 | "\tSTATUS_OK\x10\x00\x12\x11\n" + |
| 2048 | "\rUNKNOWN_ERROR\x10\x01\x12\r\n" + |
| 2049 | "\tNO_DIRECT\x10\x022\x86\n" + |
| 2050 | "\n" + |
| 2051 | "\rTunnelService\x12S\n" + |
| 2052 | "\x0eMintDelegation\x12\x1f.protocol.MintDelegationRequest\x1a .protocol.MintDelegationResponse\x12V\n" + |
| 2053 | "\x0fListDelegations\x12 .protocol.ListDelegationsRequest\x1a!.protocol.ListDelegationsResponse\x12Y\n" + |
| 2054 | "\x10RevokeDelegation\x12!.protocol.RevokeDelegationRequest\x1a\".protocol.RevokeDelegationResponse\x12A\n" + |
| 2055 | "\x04Ping\x12\x1b.protocol.ClientPingRequest\x1a\x1c.protocol.ClientPingResponse\x12Y\n" + |
| 2056 | "\x10RegisterIdentity\x12!.protocol.RegisterIdentityRequest\x1a\".protocol.RegisterIdentityResponse\x12A\n" + |
| 2057 | "\bGetNodes\x12\x19.protocol.GetNodesRequest\x1a\x1a.protocol.GetNodesResponse\x12Y\n" + |
| 2058 | "\x10GenerateHostname\x12!.protocol.GenerateHostnameRequest\x1a\".protocol.GenerateHostnameResponse\x12b\n" + |
| 2059 | "\x13RegisteredHostnames\x12$.protocol.RegisteredHostnamesRequest\x1a%.protocol.RegisteredHostnamesResponse\x12P\n" + |
| 2060 | "\rPublishTunnel\x12\x1e.protocol.PublishTunnelRequest\x1a\x1f.protocol.PublishTunnelResponse\x12V\n" + |
| 2061 | "\x0fUnpublishTunnel\x12 .protocol.UnpublishTunnelRequest\x1a!.protocol.UnpublishTunnelResponse\x12P\n" + |
| 2062 | "\rReleaseTunnel\x12\x1e.protocol.ReleaseTunnelRequest\x1a\x1f.protocol.ReleaseTunnelResponse\x12N\n" + |
| 2063 | "\x0fAcmeInstruction\x12\x1c.protocol.InstructionRequest\x1a\x1d.protocol.InstructionResponse\x12E\n" + |
| 2064 | "\fAcmeValidate\x12\x19.protocol.ValidateRequest\x1a\x1a.protocol.ValidateResponse\x12\\\n" + |
| 2065 | "\x14OpenEphemeralSession\x12%.protocol.OpenEphemeralSessionRequest\x1a\x1d.protocol.OpenSessionResponse\x12\\\n" + |
| 2066 | "\x14OpenDelegatedSession\x12%.protocol.OpenDelegatedSessionRequest\x1a\x1d.protocol.OpenSessionResponse:@\n" + |
| 2067 | "\talpn_name\x12!.google.protobuf.EnumValueOptions\x18\xe2\xa7\x03 \x01(\tR\balpnNameB+H\x01Z'go.miragespace.co/specter/spec/protocolb\x06proto3" |
| 2068 | |
| 2069 | var ( |
| 2070 | file_spec_proto_tunnel_proto_rawDescOnce sync.Once |
| 2071 | file_spec_proto_tunnel_proto_rawDescData []byte |
| 2072 | ) |
| 2073 | |
| 2074 | func file_spec_proto_tunnel_proto_rawDescGZIP() []byte { |
| 2075 | file_spec_proto_tunnel_proto_rawDescOnce.Do(func() { |
| 2076 | file_spec_proto_tunnel_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_spec_proto_tunnel_proto_rawDesc), len(file_spec_proto_tunnel_proto_rawDesc))) |
| 2077 | }) |
| 2078 | return file_spec_proto_tunnel_proto_rawDescData |
| 2079 | } |
| 2080 | |
| 2081 | var file_spec_proto_tunnel_proto_enumTypes = make([]protoimpl.EnumInfo, 2) |
| 2082 | var file_spec_proto_tunnel_proto_msgTypes = make([]protoimpl.MessageInfo, 37) |
| 2083 | var file_spec_proto_tunnel_proto_goTypes = []any{ |
| 2084 | (TunnelStatusCode)(0), // 0: protocol.TunnelStatusCode |
| 2085 | (Link_ALPN)(0), // 1: protocol.Link.ALPN |
| 2086 | (*Link)(nil), // 2: protocol.Link |
| 2087 | (*CustomHostname)(nil), // 3: protocol.CustomHostname |
| 2088 | (*TunnelRoute)(nil), // 4: protocol.TunnelRoute |
| 2089 | (*TunnelDestination)(nil), // 5: protocol.TunnelDestination |
| 2090 | (*TunnelStatus)(nil), // 6: protocol.TunnelStatus |
| 2091 | (*ClientToken)(nil), // 7: protocol.ClientToken |
| 2092 | (*ClientPingRequest)(nil), // 8: protocol.ClientPingRequest |
| 2093 | (*ClientPingResponse)(nil), // 9: protocol.ClientPingResponse |
| 2094 | (*RegisterIdentityRequest)(nil), // 10: protocol.RegisterIdentityRequest |
| 2095 | (*RegisterIdentityResponse)(nil), // 11: protocol.RegisterIdentityResponse |
| 2096 | (*GetNodesRequest)(nil), // 12: protocol.GetNodesRequest |
| 2097 | (*GetNodesResponse)(nil), // 13: protocol.GetNodesResponse |
| 2098 | (*GenerateHostnameRequest)(nil), // 14: protocol.GenerateHostnameRequest |
| 2099 | (*GenerateHostnameResponse)(nil), // 15: protocol.GenerateHostnameResponse |
| 2100 | (*RegisteredHostnamesRequest)(nil), // 16: protocol.RegisteredHostnamesRequest |
| 2101 | (*RegisteredHostnamesResponse)(nil), // 17: protocol.RegisteredHostnamesResponse |
| 2102 | (*PublishTunnelRequest)(nil), // 18: protocol.PublishTunnelRequest |
| 2103 | (*PublishTunnelResponse)(nil), // 19: protocol.PublishTunnelResponse |
| 2104 | (*UnpublishTunnelRequest)(nil), // 20: protocol.UnpublishTunnelRequest |
| 2105 | (*UnpublishTunnelResponse)(nil), // 21: protocol.UnpublishTunnelResponse |
| 2106 | (*ReleaseTunnelRequest)(nil), // 22: protocol.ReleaseTunnelRequest |
| 2107 | (*ReleaseTunnelResponse)(nil), // 23: protocol.ReleaseTunnelResponse |
| 2108 | (*InstructionRequest)(nil), // 24: protocol.InstructionRequest |
| 2109 | (*InstructionResponse)(nil), // 25: protocol.InstructionResponse |
| 2110 | (*ValidateRequest)(nil), // 26: protocol.ValidateRequest |
| 2111 | (*ValidateResponse)(nil), // 27: protocol.ValidateResponse |
| 2112 | (*DelegationRecord)(nil), // 28: protocol.DelegationRecord |
| 2113 | (*DelegationGrant)(nil), // 29: protocol.DelegationGrant |
| 2114 | (*MintDelegationRequest)(nil), // 30: protocol.MintDelegationRequest |
| 2115 | (*MintDelegationResponse)(nil), // 31: protocol.MintDelegationResponse |
| 2116 | (*ListDelegationsRequest)(nil), // 32: protocol.ListDelegationsRequest |
| 2117 | (*ListDelegationsResponse)(nil), // 33: protocol.ListDelegationsResponse |
| 2118 | (*RevokeDelegationRequest)(nil), // 34: protocol.RevokeDelegationRequest |
| 2119 | (*RevokeDelegationResponse)(nil), // 35: protocol.RevokeDelegationResponse |
| 2120 | (*OpenEphemeralSessionRequest)(nil), // 36: protocol.OpenEphemeralSessionRequest |
| 2121 | (*OpenDelegatedSessionRequest)(nil), // 37: protocol.OpenDelegatedSessionRequest |
| 2122 | (*OpenSessionResponse)(nil), // 38: protocol.OpenSessionResponse |
| 2123 | (*Node)(nil), // 39: protocol.Node |
| 2124 | (*ProofOfWork)(nil), // 40: protocol.ProofOfWork |
| 2125 | (*descriptorpb.EnumValueOptions)(nil), // 41: google.protobuf.EnumValueOptions |
| 2126 | } |
| 2127 | var file_spec_proto_tunnel_proto_depIdxs = []int32{ |
| 2128 | 1, // 0: protocol.Link.alpn:type_name -> protocol.Link.ALPN |
| 2129 | 39, // 1: protocol.CustomHostname.client_identity:type_name -> protocol.Node |
| 2130 | 7, // 2: protocol.CustomHostname.client_token:type_name -> protocol.ClientToken |
| 2131 | 39, // 3: protocol.TunnelRoute.client_destination:type_name -> protocol.Node |
| 2132 | 39, // 4: protocol.TunnelRoute.chord_destination:type_name -> protocol.Node |
| 2133 | 39, // 5: protocol.TunnelRoute.tunnel_destination:type_name -> protocol.Node |
| 2134 | 39, // 6: protocol.TunnelDestination.chord:type_name -> protocol.Node |
| 2135 | 39, // 7: protocol.TunnelDestination.tunnel:type_name -> protocol.Node |
| 2136 | 0, // 8: protocol.TunnelStatus.status:type_name -> protocol.TunnelStatusCode |
| 2137 | 39, // 9: protocol.ClientPingResponse.node:type_name -> protocol.Node |
| 2138 | 39, // 10: protocol.GetNodesResponse.nodes:type_name -> protocol.Node |
| 2139 | 39, // 11: protocol.PublishTunnelRequest.servers:type_name -> protocol.Node |
| 2140 | 39, // 12: protocol.PublishTunnelResponse.published:type_name -> protocol.Node |
| 2141 | 40, // 13: protocol.InstructionRequest.proof:type_name -> protocol.ProofOfWork |
| 2142 | 40, // 14: protocol.ValidateRequest.proof:type_name -> protocol.ProofOfWork |
| 2143 | 7, // 15: protocol.DelegationRecord.owner:type_name -> protocol.ClientToken |
| 2144 | 29, // 16: protocol.MintDelegationResponse.grant:type_name -> protocol.DelegationGrant |
| 2145 | 29, // 17: protocol.ListDelegationsResponse.grants:type_name -> protocol.DelegationGrant |
| 2146 | 39, // 18: protocol.OpenSessionResponse.node:type_name -> protocol.Node |
| 2147 | 41, // 19: protocol.alpn_name:extendee -> google.protobuf.EnumValueOptions |
| 2148 | 30, // 20: protocol.TunnelService.MintDelegation:input_type -> protocol.MintDelegationRequest |
| 2149 | 32, // 21: protocol.TunnelService.ListDelegations:input_type -> protocol.ListDelegationsRequest |
| 2150 | 34, // 22: protocol.TunnelService.RevokeDelegation:input_type -> protocol.RevokeDelegationRequest |
| 2151 | 8, // 23: protocol.TunnelService.Ping:input_type -> protocol.ClientPingRequest |
| 2152 | 10, // 24: protocol.TunnelService.RegisterIdentity:input_type -> protocol.RegisterIdentityRequest |
| 2153 | 12, // 25: protocol.TunnelService.GetNodes:input_type -> protocol.GetNodesRequest |
| 2154 | 14, // 26: protocol.TunnelService.GenerateHostname:input_type -> protocol.GenerateHostnameRequest |
| 2155 | 16, // 27: protocol.TunnelService.RegisteredHostnames:input_type -> protocol.RegisteredHostnamesRequest |
| 2156 | 18, // 28: protocol.TunnelService.PublishTunnel:input_type -> protocol.PublishTunnelRequest |
| 2157 | 20, // 29: protocol.TunnelService.UnpublishTunnel:input_type -> protocol.UnpublishTunnelRequest |
| 2158 | 22, // 30: protocol.TunnelService.ReleaseTunnel:input_type -> protocol.ReleaseTunnelRequest |
| 2159 | 24, // 31: protocol.TunnelService.AcmeInstruction:input_type -> protocol.InstructionRequest |
| 2160 | 26, // 32: protocol.TunnelService.AcmeValidate:input_type -> protocol.ValidateRequest |
| 2161 | 36, // 33: protocol.TunnelService.OpenEphemeralSession:input_type -> protocol.OpenEphemeralSessionRequest |
| 2162 | 37, // 34: protocol.TunnelService.OpenDelegatedSession:input_type -> protocol.OpenDelegatedSessionRequest |
| 2163 | 31, // 35: protocol.TunnelService.MintDelegation:output_type -> protocol.MintDelegationResponse |
| 2164 | 33, // 36: protocol.TunnelService.ListDelegations:output_type -> protocol.ListDelegationsResponse |
| 2165 | 35, // 37: protocol.TunnelService.RevokeDelegation:output_type -> protocol.RevokeDelegationResponse |
| 2166 | 9, // 38: protocol.TunnelService.Ping:output_type -> protocol.ClientPingResponse |
| 2167 | 11, // 39: protocol.TunnelService.RegisterIdentity:output_type -> protocol.RegisterIdentityResponse |
| 2168 | 13, // 40: protocol.TunnelService.GetNodes:output_type -> protocol.GetNodesResponse |
| 2169 | 15, // 41: protocol.TunnelService.GenerateHostname:output_type -> protocol.GenerateHostnameResponse |
| 2170 | 17, // 42: protocol.TunnelService.RegisteredHostnames:output_type -> protocol.RegisteredHostnamesResponse |
| 2171 | 19, // 43: protocol.TunnelService.PublishTunnel:output_type -> protocol.PublishTunnelResponse |
| 2172 | 21, // 44: protocol.TunnelService.UnpublishTunnel:output_type -> protocol.UnpublishTunnelResponse |
| 2173 | 23, // 45: protocol.TunnelService.ReleaseTunnel:output_type -> protocol.ReleaseTunnelResponse |
| 2174 | 25, // 46: protocol.TunnelService.AcmeInstruction:output_type -> protocol.InstructionResponse |
| 2175 | 27, // 47: protocol.TunnelService.AcmeValidate:output_type -> protocol.ValidateResponse |
| 2176 | 38, // 48: protocol.TunnelService.OpenEphemeralSession:output_type -> protocol.OpenSessionResponse |
| 2177 | 38, // 49: protocol.TunnelService.OpenDelegatedSession:output_type -> protocol.OpenSessionResponse |
| 2178 | 35, // [35:50] is the sub-list for method output_type |
| 2179 | 20, // [20:35] is the sub-list for method input_type |
| 2180 | 20, // [20:20] is the sub-list for extension type_name |
| 2181 | 19, // [19:20] is the sub-list for extension extendee |
| 2182 | 0, // [0:19] is the sub-list for field type_name |
| 2183 | } |
| 2184 | |
| 2185 | func init() { file_spec_proto_tunnel_proto_init() } |
| 2186 | func file_spec_proto_tunnel_proto_init() { |
| 2187 | if File_spec_proto_tunnel_proto != nil { |
| 2188 | return |
| 2189 | } |
| 2190 | file_spec_proto_node_proto_init() |
| 2191 | file_spec_proto_pow_proto_init() |
| 2192 | type x struct{} |
| 2193 | out := protoimpl.TypeBuilder{ |
| 2194 | File: protoimpl.DescBuilder{ |
| 2195 | GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 2196 | RawDescriptor: unsafe.Slice(unsafe.StringData(file_spec_proto_tunnel_proto_rawDesc), len(file_spec_proto_tunnel_proto_rawDesc)), |
| 2197 | NumEnums: 2, |
| 2198 | NumMessages: 37, |
| 2199 | NumExtensions: 1, |
| 2200 | NumServices: 1, |
| 2201 | }, |
| 2202 | GoTypes: file_spec_proto_tunnel_proto_goTypes, |
| 2203 | DependencyIndexes: file_spec_proto_tunnel_proto_depIdxs, |
| 2204 | EnumInfos: file_spec_proto_tunnel_proto_enumTypes, |
| 2205 | MessageInfos: file_spec_proto_tunnel_proto_msgTypes, |
| 2206 | ExtensionInfos: file_spec_proto_tunnel_proto_extTypes, |
| 2207 | }.Build() |
| 2208 | File_spec_proto_tunnel_proto = out.File |
| 2209 | file_spec_proto_tunnel_proto_goTypes = nil |
| 2210 | file_spec_proto_tunnel_proto_depIdxs = nil |
| 2211 | } |