renamed pts to pty to avoid name collision
This commit is contained in:
328
hodu.pb.go
328
hodu.pb.go
@ -1,6 +1,6 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.5
|
||||
// protoc-gen-go v1.36.7
|
||||
// protoc v3.19.6
|
||||
// source: hodu.proto
|
||||
|
||||
@ -101,6 +101,13 @@ const (
|
||||
PACKET_KIND_CONN_DESC PACKET_KIND = 11
|
||||
PACKET_KIND_CONN_ERROR PACKET_KIND = 12
|
||||
PACKET_KIND_CONN_NOTICE PACKET_KIND = 13
|
||||
PACKET_KIND_RPTY_START PACKET_KIND = 14
|
||||
PACKET_KIND_RPTY_STOP PACKET_KIND = 15
|
||||
PACKET_KIND_RPTY_STARTED PACKET_KIND = 16
|
||||
PACKET_KIND_RPTY_STOPPED PACKET_KIND = 17
|
||||
PACKET_KIND_RPTY_ABORTED PACKET_KIND = 18
|
||||
PACKET_KIND_RPTY_EOF PACKET_KIND = 19
|
||||
PACKET_KIND_RPTY_DATA PACKET_KIND = 20
|
||||
)
|
||||
|
||||
// Enum value maps for PACKET_KIND.
|
||||
@ -119,6 +126,13 @@ var (
|
||||
11: "CONN_DESC",
|
||||
12: "CONN_ERROR",
|
||||
13: "CONN_NOTICE",
|
||||
14: "RPTY_START",
|
||||
15: "RPTY_STOP",
|
||||
16: "RPTY_STARTED",
|
||||
17: "RPTY_STOPPED",
|
||||
18: "RPTY_ABORTED",
|
||||
19: "RPTY_EOF",
|
||||
20: "RPTY_DATA",
|
||||
}
|
||||
PACKET_KIND_value = map[string]int32{
|
||||
"RESERVED": 0,
|
||||
@ -134,6 +148,13 @@ var (
|
||||
"CONN_DESC": 11,
|
||||
"CONN_ERROR": 12,
|
||||
"CONN_NOTICE": 13,
|
||||
"RPTY_START": 14,
|
||||
"RPTY_STOP": 15,
|
||||
"RPTY_STARTED": 16,
|
||||
"RPTY_STOPPED": 17,
|
||||
"RPTY_ABORTED": 18,
|
||||
"RPTY_EOF": 19,
|
||||
"RPTY_DATA": 20,
|
||||
}
|
||||
)
|
||||
|
||||
@ -219,24 +240,24 @@ func (x *Seed) GetFlags() uint64 {
|
||||
type RouteDesc struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
RouteId uint32 `protobuf:"varint,1,opt,name=RouteId,proto3" json:"RouteId,omitempty"`
|
||||
// C->S(ROUTE_START): client-side peer address
|
||||
// S->C(ROUTE_STARTED): server-side listening address
|
||||
// C->S(ROUTE_START/STOP): client-side peer address
|
||||
// S->C(ROUTE_STARTED/STOPPED): server-side listening address
|
||||
TargetAddrStr string `protobuf:"bytes,2,opt,name=TargetAddrStr,proto3" json:"TargetAddrStr,omitempty"`
|
||||
// C->S(ROUTE_START): human-readable name of client-side peer
|
||||
// S->C(ROUTE_STARTED): clone as sent by C
|
||||
// C->S(ROUTE_START/STOPPED): human-readable name of client-side peer
|
||||
// S->C(ROUTE_STARTED/STOPPED): clone as sent by C
|
||||
TargetName string `protobuf:"bytes,3,opt,name=TargetName,proto3" json:"TargetName,omitempty"`
|
||||
// C->S(ROUTE_START): desired listening option on the server-side(e.g. tcp, tcp4, tcp6) +
|
||||
// C->S(ROUTE_START): requested listening option on the server-side(e.g. tcp, tcp4, tcp6) +
|
||||
//
|
||||
// hint to the service-side peer(e.g. local) +
|
||||
// hint to the client-side peer(e.g. tty, http, https)
|
||||
//
|
||||
// S->C(ROUTE_STARTED): cloned as sent by C.
|
||||
ServiceOption uint32 `protobuf:"varint,4,opt,name=ServiceOption,proto3" json:"ServiceOption,omitempty"`
|
||||
// C->S(ROUTE_START): desired lisening address on the service-side
|
||||
// C->S(ROUTE_START): requested lisening address on the service-side
|
||||
// S->C(ROUTE_STARTED): cloned as sent by C
|
||||
ServiceAddrStr string `protobuf:"bytes,5,opt,name=ServiceAddrStr,proto3" json:"ServiceAddrStr,omitempty"`
|
||||
// C->S(ROUTE_START): permitted network of server-side peers.
|
||||
// S->C(ROUTE_STARTED): cloned as sent by C.
|
||||
// C->S(ROUTE_START): requested permitted network of server-side peers.
|
||||
// S->C(ROUTE_STARTED): actual permitted network of server-side peers
|
||||
ServiceNetStr string `protobuf:"bytes,6,opt,name=ServiceNetStr,proto3" json:"ServiceNetStr,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
@ -582,6 +603,58 @@ func (x *ConnNotice) GetText() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
type RptyEvent struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Token string `protobuf:"bytes,1,opt,name=Token,proto3" json:"Token,omitempty"`
|
||||
Data []byte `protobuf:"bytes,2,opt,name=Data,proto3" json:"Data,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *RptyEvent) Reset() {
|
||||
*x = RptyEvent{}
|
||||
mi := &file_hodu_proto_msgTypes[7]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *RptyEvent) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*RptyEvent) ProtoMessage() {}
|
||||
|
||||
func (x *RptyEvent) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_hodu_proto_msgTypes[7]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use RptyEvent.ProtoReflect.Descriptor instead.
|
||||
func (*RptyEvent) Descriptor() ([]byte, []int) {
|
||||
return file_hodu_proto_rawDescGZIP(), []int{7}
|
||||
}
|
||||
|
||||
func (x *RptyEvent) GetToken() string {
|
||||
if x != nil {
|
||||
return x.Token
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *RptyEvent) GetData() []byte {
|
||||
if x != nil {
|
||||
return x.Data
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type Packet struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Kind PACKET_KIND `protobuf:"varint,1,opt,name=Kind,proto3,enum=PACKET_KIND" json:"Kind,omitempty"`
|
||||
@ -593,6 +666,7 @@ type Packet struct {
|
||||
// *Packet_Conn
|
||||
// *Packet_ConnErr
|
||||
// *Packet_ConnNoti
|
||||
// *Packet_Rpty
|
||||
U isPacket_U `protobuf_oneof:"U"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
@ -600,7 +674,7 @@ type Packet struct {
|
||||
|
||||
func (x *Packet) Reset() {
|
||||
*x = Packet{}
|
||||
mi := &file_hodu_proto_msgTypes[7]
|
||||
mi := &file_hodu_proto_msgTypes[8]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -612,7 +686,7 @@ func (x *Packet) String() string {
|
||||
func (*Packet) ProtoMessage() {}
|
||||
|
||||
func (x *Packet) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_hodu_proto_msgTypes[7]
|
||||
mi := &file_hodu_proto_msgTypes[8]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -625,7 +699,7 @@ func (x *Packet) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use Packet.ProtoReflect.Descriptor instead.
|
||||
func (*Packet) Descriptor() ([]byte, []int) {
|
||||
return file_hodu_proto_rawDescGZIP(), []int{7}
|
||||
return file_hodu_proto_rawDescGZIP(), []int{8}
|
||||
}
|
||||
|
||||
func (x *Packet) GetKind() PACKET_KIND {
|
||||
@ -696,6 +770,15 @@ func (x *Packet) GetConnNoti() *ConnNotice {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *Packet) GetRpty() *RptyEvent {
|
||||
if x != nil {
|
||||
if x, ok := x.U.(*Packet_Rpty); ok {
|
||||
return x.Rpty
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type isPacket_U interface {
|
||||
isPacket_U()
|
||||
}
|
||||
@ -724,6 +807,10 @@ type Packet_ConnNoti struct {
|
||||
ConnNoti *ConnNotice `protobuf:"bytes,7,opt,name=ConnNoti,proto3,oneof"`
|
||||
}
|
||||
|
||||
type Packet_Rpty struct {
|
||||
Rpty *RptyEvent `protobuf:"bytes,8,opt,name=Rpty,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*Packet_Route) isPacket_U() {}
|
||||
|
||||
func (*Packet_Peer) isPacket_U() {}
|
||||
@ -736,94 +823,96 @@ func (*Packet_ConnErr) isPacket_U() {}
|
||||
|
||||
func (*Packet_ConnNoti) isPacket_U() {}
|
||||
|
||||
func (*Packet_Rpty) isPacket_U() {}
|
||||
|
||||
var File_hodu_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_hodu_proto_rawDesc = string([]byte{
|
||||
0x0a, 0x0a, 0x68, 0x6f, 0x64, 0x75, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x36, 0x0a, 0x04,
|
||||
0x53, 0x65, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14,
|
||||
0x0a, 0x05, 0x46, 0x6c, 0x61, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x46,
|
||||
0x6c, 0x61, 0x67, 0x73, 0x22, 0xdf, 0x01, 0x0a, 0x09, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x44, 0x65,
|
||||
0x73, 0x63, 0x12, 0x18, 0x0a, 0x07, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20,
|
||||
0x01, 0x28, 0x0d, 0x52, 0x07, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0d,
|
||||
0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x41, 0x64, 0x64, 0x72, 0x53, 0x74, 0x72, 0x18, 0x02, 0x20,
|
||||
0x01, 0x28, 0x09, 0x52, 0x0d, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x41, 0x64, 0x64, 0x72, 0x53,
|
||||
0x74, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65,
|
||||
0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x4e, 0x61,
|
||||
0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4f, 0x70, 0x74,
|
||||
0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0d, 0x53, 0x65, 0x72, 0x76, 0x69,
|
||||
0x63, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x26, 0x0a, 0x0e, 0x53, 0x65, 0x72, 0x76,
|
||||
0x69, 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, 0x53, 0x74, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
|
||||
0x52, 0x0e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, 0x53, 0x74, 0x72,
|
||||
0x12, 0x24, 0x0a, 0x0d, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4e, 0x65, 0x74, 0x53, 0x74,
|
||||
0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
|
||||
0x4e, 0x65, 0x74, 0x53, 0x74, 0x72, 0x22, 0x86, 0x01, 0x0a, 0x08, 0x50, 0x65, 0x65, 0x72, 0x44,
|
||||
0x65, 0x73, 0x63, 0x12, 0x18, 0x0a, 0x07, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x18, 0x01,
|
||||
0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x12, 0x16, 0x0a,
|
||||
0x06, 0x50, 0x65, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x50,
|
||||
0x65, 0x65, 0x72, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0d, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x41,
|
||||
0x64, 0x64, 0x72, 0x53, 0x74, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x52, 0x65,
|
||||
0x6d, 0x6f, 0x74, 0x65, 0x41, 0x64, 0x64, 0x72, 0x53, 0x74, 0x72, 0x12, 0x22, 0x0a, 0x0c, 0x4c,
|
||||
0x6f, 0x63, 0x61, 0x6c, 0x41, 0x64, 0x64, 0x72, 0x53, 0x74, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28,
|
||||
0x09, 0x52, 0x0c, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x41, 0x64, 0x64, 0x72, 0x53, 0x74, 0x72, 0x22,
|
||||
0x50, 0x0a, 0x08, 0x50, 0x65, 0x65, 0x72, 0x44, 0x61, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x52,
|
||||
0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x52, 0x6f,
|
||||
0x75, 0x74, 0x65, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x50, 0x65, 0x65, 0x72, 0x49, 0x64, 0x18,
|
||||
0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x50, 0x65, 0x65, 0x72, 0x49, 0x64, 0x12, 0x12, 0x0a,
|
||||
0x04, 0x44, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x44, 0x61, 0x74,
|
||||
0x61, 0x22, 0x20, 0x0a, 0x08, 0x43, 0x6f, 0x6e, 0x6e, 0x44, 0x65, 0x73, 0x63, 0x12, 0x14, 0x0a,
|
||||
0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x54, 0x6f,
|
||||
0x6b, 0x65, 0x6e, 0x22, 0x39, 0x0a, 0x09, 0x43, 0x6f, 0x6e, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72,
|
||||
0x12, 0x18, 0x0a, 0x07, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
0x0d, 0x52, 0x07, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x54, 0x65,
|
||||
0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x54, 0x65, 0x78, 0x74, 0x22, 0x20,
|
||||
0x0a, 0x0a, 0x43, 0x6f, 0x6e, 0x6e, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04,
|
||||
0x54, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x54, 0x65, 0x78, 0x74,
|
||||
0x22, 0x89, 0x02, 0x0a, 0x06, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x20, 0x0a, 0x04, 0x4b,
|
||||
0x69, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x50, 0x41, 0x43, 0x4b,
|
||||
0x45, 0x54, 0x5f, 0x4b, 0x49, 0x4e, 0x44, 0x52, 0x04, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x22, 0x0a,
|
||||
0x05, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x52,
|
||||
0x6f, 0x75, 0x74, 0x65, 0x44, 0x65, 0x73, 0x63, 0x48, 0x00, 0x52, 0x05, 0x52, 0x6f, 0x75, 0x74,
|
||||
0x65, 0x12, 0x1f, 0x0a, 0x04, 0x50, 0x65, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||
0x09, 0x2e, 0x50, 0x65, 0x65, 0x72, 0x44, 0x65, 0x73, 0x63, 0x48, 0x00, 0x52, 0x04, 0x50, 0x65,
|
||||
0x65, 0x72, 0x12, 0x1f, 0x0a, 0x04, 0x44, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b,
|
||||
0x32, 0x09, 0x2e, 0x50, 0x65, 0x65, 0x72, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x04, 0x44,
|
||||
0x61, 0x74, 0x61, 0x12, 0x1f, 0x0a, 0x04, 0x43, 0x6f, 0x6e, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28,
|
||||
0x0b, 0x32, 0x09, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x44, 0x65, 0x73, 0x63, 0x48, 0x00, 0x52, 0x04,
|
||||
0x43, 0x6f, 0x6e, 0x6e, 0x12, 0x26, 0x0a, 0x07, 0x43, 0x6f, 0x6e, 0x6e, 0x45, 0x72, 0x72, 0x18,
|
||||
0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x45, 0x72, 0x72, 0x6f,
|
||||
0x72, 0x48, 0x00, 0x52, 0x07, 0x43, 0x6f, 0x6e, 0x6e, 0x45, 0x72, 0x72, 0x12, 0x29, 0x0a, 0x08,
|
||||
0x43, 0x6f, 0x6e, 0x6e, 0x4e, 0x6f, 0x74, 0x69, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b,
|
||||
0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x48, 0x00, 0x52, 0x08, 0x43,
|
||||
0x6f, 0x6e, 0x6e, 0x4e, 0x6f, 0x74, 0x69, 0x42, 0x03, 0x0a, 0x01, 0x55, 0x2a, 0x5e, 0x0a, 0x0c,
|
||||
0x52, 0x4f, 0x55, 0x54, 0x45, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x12, 0x0a, 0x0a, 0x06,
|
||||
0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x43, 0x50, 0x10,
|
||||
0x01, 0x12, 0x08, 0x0a, 0x04, 0x54, 0x43, 0x50, 0x34, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x54,
|
||||
0x43, 0x50, 0x36, 0x10, 0x04, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x54, 0x59, 0x10, 0x08, 0x12, 0x08,
|
||||
0x0a, 0x04, 0x48, 0x54, 0x54, 0x50, 0x10, 0x10, 0x12, 0x09, 0x0a, 0x05, 0x48, 0x54, 0x54, 0x50,
|
||||
0x53, 0x10, 0x20, 0x12, 0x07, 0x0a, 0x03, 0x53, 0x53, 0x48, 0x10, 0x40, 0x2a, 0xe5, 0x01, 0x0a,
|
||||
0x0b, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x4b, 0x49, 0x4e, 0x44, 0x12, 0x0c, 0x0a, 0x08,
|
||||
0x52, 0x45, 0x53, 0x45, 0x52, 0x56, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x52, 0x4f,
|
||||
0x55, 0x54, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x52,
|
||||
0x4f, 0x55, 0x54, 0x45, 0x5f, 0x53, 0x54, 0x4f, 0x50, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x52,
|
||||
0x4f, 0x55, 0x54, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, 0x45, 0x44, 0x10, 0x03, 0x12, 0x11,
|
||||
0x0a, 0x0d, 0x52, 0x4f, 0x55, 0x54, 0x45, 0x5f, 0x53, 0x54, 0x4f, 0x50, 0x50, 0x45, 0x44, 0x10,
|
||||
0x04, 0x12, 0x10, 0x0a, 0x0c, 0x50, 0x45, 0x45, 0x52, 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, 0x45,
|
||||
0x44, 0x10, 0x05, 0x12, 0x10, 0x0a, 0x0c, 0x50, 0x45, 0x45, 0x52, 0x5f, 0x53, 0x54, 0x4f, 0x50,
|
||||
0x50, 0x45, 0x44, 0x10, 0x06, 0x12, 0x10, 0x0a, 0x0c, 0x50, 0x45, 0x45, 0x52, 0x5f, 0x41, 0x42,
|
||||
0x4f, 0x52, 0x54, 0x45, 0x44, 0x10, 0x07, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x45, 0x45, 0x52, 0x5f,
|
||||
0x45, 0x4f, 0x46, 0x10, 0x08, 0x12, 0x0d, 0x0a, 0x09, 0x50, 0x45, 0x45, 0x52, 0x5f, 0x44, 0x41,
|
||||
0x54, 0x41, 0x10, 0x09, 0x12, 0x0d, 0x0a, 0x09, 0x43, 0x4f, 0x4e, 0x4e, 0x5f, 0x44, 0x45, 0x53,
|
||||
0x43, 0x10, 0x0b, 0x12, 0x0e, 0x0a, 0x0a, 0x43, 0x4f, 0x4e, 0x4e, 0x5f, 0x45, 0x52, 0x52, 0x4f,
|
||||
0x52, 0x10, 0x0c, 0x12, 0x0f, 0x0a, 0x0b, 0x43, 0x4f, 0x4e, 0x4e, 0x5f, 0x4e, 0x4f, 0x54, 0x49,
|
||||
0x43, 0x45, 0x10, 0x0d, 0x32, 0x49, 0x0a, 0x04, 0x48, 0x6f, 0x64, 0x75, 0x12, 0x19, 0x0a, 0x07,
|
||||
0x47, 0x65, 0x74, 0x53, 0x65, 0x65, 0x64, 0x12, 0x05, 0x2e, 0x53, 0x65, 0x65, 0x64, 0x1a, 0x05,
|
||||
0x2e, 0x53, 0x65, 0x65, 0x64, 0x22, 0x00, 0x12, 0x26, 0x0a, 0x0c, 0x50, 0x61, 0x63, 0x6b, 0x65,
|
||||
0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x07, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74,
|
||||
0x1a, 0x07, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, 0x42,
|
||||
0x08, 0x5a, 0x06, 0x2e, 0x2f, 0x68, 0x6f, 0x64, 0x75, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||
0x33,
|
||||
})
|
||||
const file_hodu_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\n" +
|
||||
"hodu.proto\"6\n" +
|
||||
"\x04Seed\x12\x18\n" +
|
||||
"\aVersion\x18\x01 \x01(\rR\aVersion\x12\x14\n" +
|
||||
"\x05Flags\x18\x02 \x01(\x04R\x05Flags\"\xdf\x01\n" +
|
||||
"\tRouteDesc\x12\x18\n" +
|
||||
"\aRouteId\x18\x01 \x01(\rR\aRouteId\x12$\n" +
|
||||
"\rTargetAddrStr\x18\x02 \x01(\tR\rTargetAddrStr\x12\x1e\n" +
|
||||
"\n" +
|
||||
"TargetName\x18\x03 \x01(\tR\n" +
|
||||
"TargetName\x12$\n" +
|
||||
"\rServiceOption\x18\x04 \x01(\rR\rServiceOption\x12&\n" +
|
||||
"\x0eServiceAddrStr\x18\x05 \x01(\tR\x0eServiceAddrStr\x12$\n" +
|
||||
"\rServiceNetStr\x18\x06 \x01(\tR\rServiceNetStr\"\x86\x01\n" +
|
||||
"\bPeerDesc\x12\x18\n" +
|
||||
"\aRouteId\x18\x01 \x01(\rR\aRouteId\x12\x16\n" +
|
||||
"\x06PeerId\x18\x02 \x01(\rR\x06PeerId\x12$\n" +
|
||||
"\rRemoteAddrStr\x18\x03 \x01(\tR\rRemoteAddrStr\x12\"\n" +
|
||||
"\fLocalAddrStr\x18\x04 \x01(\tR\fLocalAddrStr\"P\n" +
|
||||
"\bPeerData\x12\x18\n" +
|
||||
"\aRouteId\x18\x01 \x01(\rR\aRouteId\x12\x16\n" +
|
||||
"\x06PeerId\x18\x02 \x01(\rR\x06PeerId\x12\x12\n" +
|
||||
"\x04Data\x18\x03 \x01(\fR\x04Data\" \n" +
|
||||
"\bConnDesc\x12\x14\n" +
|
||||
"\x05Token\x18\x01 \x01(\tR\x05Token\"9\n" +
|
||||
"\tConnError\x12\x18\n" +
|
||||
"\aErrorId\x18\x01 \x01(\rR\aErrorId\x12\x12\n" +
|
||||
"\x04Text\x18\x02 \x01(\tR\x04Text\" \n" +
|
||||
"\n" +
|
||||
"ConnNotice\x12\x12\n" +
|
||||
"\x04Text\x18\x01 \x01(\tR\x04Text\"5\n" +
|
||||
"\tRptyEvent\x12\x14\n" +
|
||||
"\x05Token\x18\x01 \x01(\tR\x05Token\x12\x12\n" +
|
||||
"\x04Data\x18\x02 \x01(\fR\x04Data\"\xab\x02\n" +
|
||||
"\x06Packet\x12 \n" +
|
||||
"\x04Kind\x18\x01 \x01(\x0e2\f.PACKET_KINDR\x04Kind\x12\"\n" +
|
||||
"\x05Route\x18\x02 \x01(\v2\n" +
|
||||
".RouteDescH\x00R\x05Route\x12\x1f\n" +
|
||||
"\x04Peer\x18\x03 \x01(\v2\t.PeerDescH\x00R\x04Peer\x12\x1f\n" +
|
||||
"\x04Data\x18\x04 \x01(\v2\t.PeerDataH\x00R\x04Data\x12\x1f\n" +
|
||||
"\x04Conn\x18\x05 \x01(\v2\t.ConnDescH\x00R\x04Conn\x12&\n" +
|
||||
"\aConnErr\x18\x06 \x01(\v2\n" +
|
||||
".ConnErrorH\x00R\aConnErr\x12)\n" +
|
||||
"\bConnNoti\x18\a \x01(\v2\v.ConnNoticeH\x00R\bConnNoti\x12 \n" +
|
||||
"\x04Rpty\x18\b \x01(\v2\n" +
|
||||
".RptyEventH\x00R\x04RptyB\x03\n" +
|
||||
"\x01U*^\n" +
|
||||
"\fROUTE_OPTION\x12\n" +
|
||||
"\n" +
|
||||
"\x06UNSPEC\x10\x00\x12\a\n" +
|
||||
"\x03TCP\x10\x01\x12\b\n" +
|
||||
"\x04TCP4\x10\x02\x12\b\n" +
|
||||
"\x04TCP6\x10\x04\x12\a\n" +
|
||||
"\x03TTY\x10\b\x12\b\n" +
|
||||
"\x04HTTP\x10\x10\x12\t\n" +
|
||||
"\x05HTTPS\x10 \x12\a\n" +
|
||||
"\x03SSH\x10@*\xd7\x02\n" +
|
||||
"\vPACKET_KIND\x12\f\n" +
|
||||
"\bRESERVED\x10\x00\x12\x0f\n" +
|
||||
"\vROUTE_START\x10\x01\x12\x0e\n" +
|
||||
"\n" +
|
||||
"ROUTE_STOP\x10\x02\x12\x11\n" +
|
||||
"\rROUTE_STARTED\x10\x03\x12\x11\n" +
|
||||
"\rROUTE_STOPPED\x10\x04\x12\x10\n" +
|
||||
"\fPEER_STARTED\x10\x05\x12\x10\n" +
|
||||
"\fPEER_STOPPED\x10\x06\x12\x10\n" +
|
||||
"\fPEER_ABORTED\x10\a\x12\f\n" +
|
||||
"\bPEER_EOF\x10\b\x12\r\n" +
|
||||
"\tPEER_DATA\x10\t\x12\r\n" +
|
||||
"\tCONN_DESC\x10\v\x12\x0e\n" +
|
||||
"\n" +
|
||||
"CONN_ERROR\x10\f\x12\x0f\n" +
|
||||
"\vCONN_NOTICE\x10\r\x12\x0e\n" +
|
||||
"\n" +
|
||||
"RPTY_START\x10\x0e\x12\r\n" +
|
||||
"\tRPTY_STOP\x10\x0f\x12\x10\n" +
|
||||
"\fRPTY_STARTED\x10\x10\x12\x10\n" +
|
||||
"\fRPTY_STOPPED\x10\x11\x12\x10\n" +
|
||||
"\fRPTY_ABORTED\x10\x12\x12\f\n" +
|
||||
"\bRPTY_EOF\x10\x13\x12\r\n" +
|
||||
"\tRPTY_DATA\x10\x142I\n" +
|
||||
"\x04Hodu\x12\x19\n" +
|
||||
"\aGetSeed\x12\x05.Seed\x1a\x05.Seed\"\x00\x12&\n" +
|
||||
"\fPacketStream\x12\a.Packet\x1a\a.Packet\"\x00(\x010\x01B\bZ\x06./hodub\x06proto3"
|
||||
|
||||
var (
|
||||
file_hodu_proto_rawDescOnce sync.Once
|
||||
@ -838,7 +927,7 @@ func file_hodu_proto_rawDescGZIP() []byte {
|
||||
}
|
||||
|
||||
var file_hodu_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
|
||||
var file_hodu_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
||||
var file_hodu_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
||||
var file_hodu_proto_goTypes = []any{
|
||||
(ROUTE_OPTION)(0), // 0: ROUTE_OPTION
|
||||
(PACKET_KIND)(0), // 1: PACKET_KIND
|
||||
@ -849,25 +938,27 @@ var file_hodu_proto_goTypes = []any{
|
||||
(*ConnDesc)(nil), // 6: ConnDesc
|
||||
(*ConnError)(nil), // 7: ConnError
|
||||
(*ConnNotice)(nil), // 8: ConnNotice
|
||||
(*Packet)(nil), // 9: Packet
|
||||
(*RptyEvent)(nil), // 9: RptyEvent
|
||||
(*Packet)(nil), // 10: Packet
|
||||
}
|
||||
var file_hodu_proto_depIdxs = []int32{
|
||||
1, // 0: Packet.Kind:type_name -> PACKET_KIND
|
||||
3, // 1: Packet.Route:type_name -> RouteDesc
|
||||
4, // 2: Packet.Peer:type_name -> PeerDesc
|
||||
5, // 3: Packet.Data:type_name -> PeerData
|
||||
6, // 4: Packet.Conn:type_name -> ConnDesc
|
||||
7, // 5: Packet.ConnErr:type_name -> ConnError
|
||||
8, // 6: Packet.ConnNoti:type_name -> ConnNotice
|
||||
2, // 7: Hodu.GetSeed:input_type -> Seed
|
||||
9, // 8: Hodu.PacketStream:input_type -> Packet
|
||||
2, // 9: Hodu.GetSeed:output_type -> Seed
|
||||
9, // 10: Hodu.PacketStream:output_type -> Packet
|
||||
9, // [9:11] is the sub-list for method output_type
|
||||
7, // [7:9] is the sub-list for method input_type
|
||||
7, // [7:7] is the sub-list for extension type_name
|
||||
7, // [7:7] is the sub-list for extension extendee
|
||||
0, // [0:7] is the sub-list for field type_name
|
||||
1, // 0: Packet.Kind:type_name -> PACKET_KIND
|
||||
3, // 1: Packet.Route:type_name -> RouteDesc
|
||||
4, // 2: Packet.Peer:type_name -> PeerDesc
|
||||
5, // 3: Packet.Data:type_name -> PeerData
|
||||
6, // 4: Packet.Conn:type_name -> ConnDesc
|
||||
7, // 5: Packet.ConnErr:type_name -> ConnError
|
||||
8, // 6: Packet.ConnNoti:type_name -> ConnNotice
|
||||
9, // 7: Packet.Rpty:type_name -> RptyEvent
|
||||
2, // 8: Hodu.GetSeed:input_type -> Seed
|
||||
10, // 9: Hodu.PacketStream:input_type -> Packet
|
||||
2, // 10: Hodu.GetSeed:output_type -> Seed
|
||||
10, // 11: Hodu.PacketStream:output_type -> Packet
|
||||
10, // [10:12] is the sub-list for method output_type
|
||||
8, // [8:10] is the sub-list for method input_type
|
||||
8, // [8:8] is the sub-list for extension type_name
|
||||
8, // [8:8] is the sub-list for extension extendee
|
||||
0, // [0:8] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_hodu_proto_init() }
|
||||
@ -875,13 +966,14 @@ func file_hodu_proto_init() {
|
||||
if File_hodu_proto != nil {
|
||||
return
|
||||
}
|
||||
file_hodu_proto_msgTypes[7].OneofWrappers = []any{
|
||||
file_hodu_proto_msgTypes[8].OneofWrappers = []any{
|
||||
(*Packet_Route)(nil),
|
||||
(*Packet_Peer)(nil),
|
||||
(*Packet_Data)(nil),
|
||||
(*Packet_Conn)(nil),
|
||||
(*Packet_ConnErr)(nil),
|
||||
(*Packet_ConnNoti)(nil),
|
||||
(*Packet_Rpty)(nil),
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
@ -889,7 +981,7 @@ func file_hodu_proto_init() {
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_hodu_proto_rawDesc), len(file_hodu_proto_rawDesc)),
|
||||
NumEnums: 2,
|
||||
NumMessages: 8,
|
||||
NumMessages: 9,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
|
Reference in New Issue
Block a user