|
|
@@ -18,6 +18,30 @@ var _ = proto.Marshal
|
|
|
var _ = fmt.Errorf
|
|
|
var _ = math.Inf
|
|
|
|
|
|
+type VPNProto int32
|
|
|
+
|
|
|
+const (
|
|
|
+ VPNProto_NOPREF VPNProto = 0
|
|
|
+ VPNProto_UDP VPNProto = 1
|
|
|
+ VPNProto_TCP VPNProto = 2
|
|
|
+)
|
|
|
+
|
|
|
+var VPNProto_name = map[int32]string{
|
|
|
+ 0: "NOPREF",
|
|
|
+ 1: "UDP",
|
|
|
+ 2: "TCP",
|
|
|
+}
|
|
|
+var VPNProto_value = map[string]int32{
|
|
|
+ "NOPREF": 0,
|
|
|
+ "UDP": 1,
|
|
|
+ "TCP": 2,
|
|
|
+}
|
|
|
+
|
|
|
+func (x VPNProto) String() string {
|
|
|
+ return proto.EnumName(VPNProto_name, int32(x))
|
|
|
+}
|
|
|
+func (VPNProto) EnumDescriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
|
|
|
+
|
|
|
type VPNStatusRequest struct {
|
|
|
}
|
|
|
|
|
|
@@ -27,8 +51,9 @@ func (*VPNStatusRequest) ProtoMessage() {}
|
|
|
func (*VPNStatusRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
|
|
|
|
|
|
type VPNInitRequest struct {
|
|
|
- Hostname string `protobuf:"bytes,1,opt,name=Hostname" json:"Hostname,omitempty"`
|
|
|
- Port string `protobuf:"bytes,2,opt,name=Port" json:"Port,omitempty"`
|
|
|
+ Hostname string `protobuf:"bytes,1,opt,name=Hostname" json:"Hostname,omitempty"`
|
|
|
+ Port string `protobuf:"bytes,2,opt,name=Port" json:"Port,omitempty"`
|
|
|
+ Protopref VPNProto `protobuf:"varint,3,opt,name=Protopref,enum=pb.VPNProto" json:"Protopref,omitempty"`
|
|
|
}
|
|
|
|
|
|
func (m *VPNInitRequest) Reset() { *m = VPNInitRequest{} }
|
|
|
@@ -50,6 +75,13 @@ func (m *VPNInitRequest) GetPort() string {
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
+func (m *VPNInitRequest) GetProtopref() VPNProto {
|
|
|
+ if m != nil {
|
|
|
+ return m.Protopref
|
|
|
+ }
|
|
|
+ return VPNProto_NOPREF
|
|
|
+}
|
|
|
+
|
|
|
type VPNStatusResponse struct {
|
|
|
Name string `protobuf:"bytes,1,opt,name=Name" json:"Name,omitempty"`
|
|
|
SerialNumber string `protobuf:"bytes,2,opt,name=SerialNumber" json:"SerialNumber,omitempty"`
|
|
|
@@ -60,6 +92,7 @@ type VPNStatusResponse struct {
|
|
|
Net string `protobuf:"bytes,7,opt,name=Net" json:"Net,omitempty"`
|
|
|
Mask string `protobuf:"bytes,8,opt,name=Mask" json:"Mask,omitempty"`
|
|
|
CreatedAt string `protobuf:"bytes,9,opt,name=CreatedAt" json:"CreatedAt,omitempty"`
|
|
|
+ Proto string `protobuf:"bytes,10,opt,name=Proto" json:"Proto,omitempty"`
|
|
|
}
|
|
|
|
|
|
func (m *VPNStatusResponse) Reset() { *m = VPNStatusResponse{} }
|
|
|
@@ -130,6 +163,13 @@ func (m *VPNStatusResponse) GetCreatedAt() string {
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
+func (m *VPNStatusResponse) GetProto() string {
|
|
|
+ if m != nil {
|
|
|
+ return m.Proto
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
type VPNInitResponse struct {
|
|
|
}
|
|
|
|
|
|
@@ -143,6 +183,7 @@ func init() {
|
|
|
proto.RegisterType((*VPNInitRequest)(nil), "pb.VPNInitRequest")
|
|
|
proto.RegisterType((*VPNStatusResponse)(nil), "pb.VPNStatusResponse")
|
|
|
proto.RegisterType((*VPNInitResponse)(nil), "pb.VPNInitResponse")
|
|
|
+ proto.RegisterEnum("pb.VPNProto", VPNProto_name, VPNProto_value)
|
|
|
}
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
@@ -253,27 +294,31 @@ var _VPNService_serviceDesc = grpc.ServiceDesc{
|
|
|
func init() { proto.RegisterFile("vpn.proto", fileDescriptor1) }
|
|
|
|
|
|
var fileDescriptor1 = []byte{
|
|
|
- // 341 bytes of a gzipped FileDescriptorProto
|
|
|
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xcd, 0x4e, 0xfa, 0x40,
|
|
|
- 0x14, 0xc5, 0x53, 0xe0, 0xdf, 0x3f, 0xbd, 0x21, 0x08, 0x17, 0x3f, 0x6a, 0xc3, 0xc2, 0xcc, 0xca,
|
|
|
- 0xb0, 0xa0, 0x51, 0x77, 0xac, 0x24, 0x6c, 0x70, 0x61, 0xd3, 0x40, 0xc2, 0x7e, 0xaa, 0x13, 0xd2,
|
|
|
- 0x08, 0x33, 0xb5, 0x73, 0xe9, 0x03, 0xf8, 0x0a, 0xbe, 0x84, 0xef, 0xe3, 0x2b, 0xb8, 0xf3, 0x25,
|
|
|
- 0xcc, 0x4c, 0x2b, 0x5f, 0x89, 0xbb, 0x33, 0xbf, 0xb9, 0xf7, 0x9c, 0xf4, 0x74, 0xc0, 0x2b, 0x32,
|
|
|
- 0x39, 0xcc, 0x72, 0x45, 0x0a, 0x6b, 0x59, 0x12, 0xf4, 0x97, 0x4a, 0x2d, 0x57, 0x22, 0xe4, 0x59,
|
|
|
- 0x1a, 0x72, 0x29, 0x15, 0x71, 0x4a, 0x95, 0xd4, 0xe5, 0x04, 0x43, 0xe8, 0x2c, 0xe2, 0x68, 0x4e,
|
|
|
- 0x9c, 0x36, 0x7a, 0x26, 0x5e, 0x37, 0x42, 0x13, 0xbb, 0x87, 0xf6, 0x22, 0x8e, 0x1e, 0x64, 0x4a,
|
|
|
- 0x15, 0xc1, 0x00, 0x9a, 0x53, 0xa5, 0x49, 0xf2, 0xb5, 0xf0, 0x9d, 0x2b, 0xe7, 0xda, 0x9b, 0x6d,
|
|
|
- 0xcf, 0x88, 0xd0, 0x88, 0x55, 0x4e, 0x7e, 0xcd, 0x72,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, 0x24, 0xae, 0x7d, 0x08, 0x77, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x17, 0xd3, 0x4c,
|
|
|
- 0xab, 0x37, 0x02, 0x00, 0x00,
|
|
|
+ // 406 bytes of a gzipped FileDescriptorProto
|
|
|
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xc1, 0x72, 0xd3, 0x30,
|
|
|
+ 0x10, 0x86, 0xb1, 0x93, 0xba, 0xf1, 0x4e, 0x26, 0x38, 0xdb, 0x02, 0x22, 0xd3, 0x43, 0x47, 0xa7,
|
|
|
+ 0x4c, 0x0e, 0xf1, 0x50, 0x6e, 0xbd, 0x75, 0x0c, 0x4c, 0x39, 0x60, 0x34, 0x2e, 0xe4, 0x2e, 0x83,
|
|
|
+ 0xe8, 0x78, 0x48, 0x25, 0x21, 0x29, 0xbe, 0xc3, 0x2b, 0xf0, 0x12, 0xbc, 0x0f, 0xaf, 0xc0, 0x83,
|
|
|
+ 0x30, 0x92, 0xdd, 0x26, 0x66, 0x86, 0xdb, 0xbf, 0xdf, 0x66, 0x77, 0xff, 0xfc, 0x16, 0xa4, 0xad,
|
|
|
+ 0x96, 0x6b, 0x6d, 0x94, 0x53, 0x18, 0xeb, 0x7a, 0x71, 0x76, 0xab, 0xd4, 0xed, 0x56, 0xe4, 0x5c,
|
|
|
+ 0x37, 0x39, 0x97, 0x52, 0x39, 0xee, 0x1a, 0x25, 0x6d, 0xf7, 0x0b, 0x8a, 0x90, 0x6d, 0x58, 0x79,
|
|
|
+ 0xe3, 0xb8, 0xdb, 0xd9, 0x4a, 0x7c, 0xdb, 0x09, 0xeb, 0xe8, 0x16, 0x66, 0x1b, 0x56, 0xbe, 0x95,
|
|
|
+ 0x8d, 0xeb, 0x09, 0x2e, 0x60, 0x72, 0xad, 0xac, 0x93, 0xfc, 0x4e, 0x90, 0xe8, 0x3c, 0x5a, 0xa6,
|
|
|
+ 0xd5, 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