vpn.pb.go 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: vpn.proto
  3. package pb
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import _ "google.golang.org/genproto/googleapis/api/annotations"
  8. import (
  9. context "golang.org/x/net/context"
  10. grpc "google.golang.org/grpc"
  11. )
  12. // Reference imports to suppress errors if they are not otherwise used.
  13. var _ = proto.Marshal
  14. var _ = fmt.Errorf
  15. var _ = math.Inf
  16. type VPNStatusRequest struct {
  17. }
  18. func (m *VPNStatusRequest) Reset() { *m = VPNStatusRequest{} }
  19. func (m *VPNStatusRequest) String() string { return proto.CompactTextString(m) }
  20. func (*VPNStatusRequest) ProtoMessage() {}
  21. func (*VPNStatusRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
  22. type VPNInitRequest struct {
  23. Hostname string `protobuf:"bytes,1,opt,name=Hostname" json:"Hostname,omitempty"`
  24. Port string `protobuf:"bytes,2,opt,name=Port" json:"Port,omitempty"`
  25. }
  26. func (m *VPNInitRequest) Reset() { *m = VPNInitRequest{} }
  27. func (m *VPNInitRequest) String() string { return proto.CompactTextString(m) }
  28. func (*VPNInitRequest) ProtoMessage() {}
  29. func (*VPNInitRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} }
  30. func (m *VPNInitRequest) GetHostname() string {
  31. if m != nil {
  32. return m.Hostname
  33. }
  34. return ""
  35. }
  36. func (m *VPNInitRequest) GetPort() string {
  37. if m != nil {
  38. return m.Port
  39. }
  40. return ""
  41. }
  42. type VPNStatusResponse struct {
  43. Name string `protobuf:"bytes,1,opt,name=Name" json:"Name,omitempty"`
  44. SerialNumber string `protobuf:"bytes,2,opt,name=SerialNumber" json:"SerialNumber,omitempty"`
  45. Hostname string `protobuf:"bytes,3,opt,name=Hostname" json:"Hostname,omitempty"`
  46. Port string `protobuf:"bytes,4,opt,name=Port" json:"Port,omitempty"`
  47. Cert string `protobuf:"bytes,5,opt,name=Cert" json:"Cert,omitempty"`
  48. CACert string `protobuf:"bytes,6,opt,name=CACert" json:"CACert,omitempty"`
  49. Net string `protobuf:"bytes,7,opt,name=Net" json:"Net,omitempty"`
  50. Mask string `protobuf:"bytes,8,opt,name=Mask" json:"Mask,omitempty"`
  51. CreatedAt string `protobuf:"bytes,9,opt,name=CreatedAt" json:"CreatedAt,omitempty"`
  52. }
  53. func (m *VPNStatusResponse) Reset() { *m = VPNStatusResponse{} }
  54. func (m *VPNStatusResponse) String() string { return proto.CompactTextString(m) }
  55. func (*VPNStatusResponse) ProtoMessage() {}
  56. func (*VPNStatusResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{2} }
  57. func (m *VPNStatusResponse) GetName() string {
  58. if m != nil {
  59. return m.Name
  60. }
  61. return ""
  62. }
  63. func (m *VPNStatusResponse) GetSerialNumber() string {
  64. if m != nil {
  65. return m.SerialNumber
  66. }
  67. return ""
  68. }
  69. func (m *VPNStatusResponse) GetHostname() string {
  70. if m != nil {
  71. return m.Hostname
  72. }
  73. return ""
  74. }
  75. func (m *VPNStatusResponse) GetPort() string {
  76. if m != nil {
  77. return m.Port
  78. }
  79. return ""
  80. }
  81. func (m *VPNStatusResponse) GetCert() string {
  82. if m != nil {
  83. return m.Cert
  84. }
  85. return ""
  86. }
  87. func (m *VPNStatusResponse) GetCACert() string {
  88. if m != nil {
  89. return m.CACert
  90. }
  91. return ""
  92. }
  93. func (m *VPNStatusResponse) GetNet() string {
  94. if m != nil {
  95. return m.Net
  96. }
  97. return ""
  98. }
  99. func (m *VPNStatusResponse) GetMask() string {
  100. if m != nil {
  101. return m.Mask
  102. }
  103. return ""
  104. }
  105. func (m *VPNStatusResponse) GetCreatedAt() string {
  106. if m != nil {
  107. return m.CreatedAt
  108. }
  109. return ""
  110. }
  111. type VPNInitResponse struct {
  112. }
  113. func (m *VPNInitResponse) Reset() { *m = VPNInitResponse{} }
  114. func (m *VPNInitResponse) String() string { return proto.CompactTextString(m) }
  115. func (*VPNInitResponse) ProtoMessage() {}
  116. func (*VPNInitResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{3} }
  117. func init() {
  118. proto.RegisterType((*VPNStatusRequest)(nil), "pb.VPNStatusRequest")
  119. proto.RegisterType((*VPNInitRequest)(nil), "pb.VPNInitRequest")
  120. proto.RegisterType((*VPNStatusResponse)(nil), "pb.VPNStatusResponse")
  121. proto.RegisterType((*VPNInitResponse)(nil), "pb.VPNInitResponse")
  122. }
  123. // Reference imports to suppress errors if they are not otherwise used.
  124. var _ context.Context
  125. var _ grpc.ClientConn
  126. // This is a compile-time assertion to ensure that this generated file
  127. // is compatible with the grpc package it is being compiled against.
  128. const _ = grpc.SupportPackageIsVersion4
  129. // Client API for VPNService service
  130. type VPNServiceClient interface {
  131. Status(ctx context.Context, in *VPNStatusRequest, opts ...grpc.CallOption) (*VPNStatusResponse, error)
  132. Init(ctx context.Context, in *VPNInitRequest, opts ...grpc.CallOption) (*VPNInitResponse, error)
  133. }
  134. type vPNServiceClient struct {
  135. cc *grpc.ClientConn
  136. }
  137. func NewVPNServiceClient(cc *grpc.ClientConn) VPNServiceClient {
  138. return &vPNServiceClient{cc}
  139. }
  140. func (c *vPNServiceClient) Status(ctx context.Context, in *VPNStatusRequest, opts ...grpc.CallOption) (*VPNStatusResponse, error) {
  141. out := new(VPNStatusResponse)
  142. err := grpc.Invoke(ctx, "/pb.VPNService/Status", in, out, c.cc, opts...)
  143. if err != nil {
  144. return nil, err
  145. }
  146. return out, nil
  147. }
  148. func (c *vPNServiceClient) Init(ctx context.Context, in *VPNInitRequest, opts ...grpc.CallOption) (*VPNInitResponse, error) {
  149. out := new(VPNInitResponse)
  150. err := grpc.Invoke(ctx, "/pb.VPNService/Init", in, out, c.cc, opts...)
  151. if err != nil {
  152. return nil, err
  153. }
  154. return out, nil
  155. }
  156. // Server API for VPNService service
  157. type VPNServiceServer interface {
  158. Status(context.Context, *VPNStatusRequest) (*VPNStatusResponse, error)
  159. Init(context.Context, *VPNInitRequest) (*VPNInitResponse, error)
  160. }
  161. func RegisterVPNServiceServer(s *grpc.Server, srv VPNServiceServer) {
  162. s.RegisterService(&_VPNService_serviceDesc, srv)
  163. }
  164. func _VPNService_Status_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  165. in := new(VPNStatusRequest)
  166. if err := dec(in); err != nil {
  167. return nil, err
  168. }
  169. if interceptor == nil {
  170. return srv.(VPNServiceServer).Status(ctx, in)
  171. }
  172. info := &grpc.UnaryServerInfo{
  173. Server: srv,
  174. FullMethod: "/pb.VPNService/Status",
  175. }
  176. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  177. return srv.(VPNServiceServer).Status(ctx, req.(*VPNStatusRequest))
  178. }
  179. return interceptor(ctx, in, info, handler)
  180. }
  181. func _VPNService_Init_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  182. in := new(VPNInitRequest)
  183. if err := dec(in); err != nil {
  184. return nil, err
  185. }
  186. if interceptor == nil {
  187. return srv.(VPNServiceServer).Init(ctx, in)
  188. }
  189. info := &grpc.UnaryServerInfo{
  190. Server: srv,
  191. FullMethod: "/pb.VPNService/Init",
  192. }
  193. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  194. return srv.(VPNServiceServer).Init(ctx, req.(*VPNInitRequest))
  195. }
  196. return interceptor(ctx, in, info, handler)
  197. }
  198. var _VPNService_serviceDesc = grpc.ServiceDesc{
  199. ServiceName: "pb.VPNService",
  200. HandlerType: (*VPNServiceServer)(nil),
  201. Methods: []grpc.MethodDesc{
  202. {
  203. MethodName: "Status",
  204. Handler: _VPNService_Status_Handler,
  205. },
  206. {
  207. MethodName: "Init",
  208. Handler: _VPNService_Init_Handler,
  209. },
  210. },
  211. Streams: []grpc.StreamDesc{},
  212. Metadata: "vpn.proto",
  213. }
  214. func init() { proto.RegisterFile("vpn.proto", fileDescriptor1) }
  215. var fileDescriptor1 = []byte{
  216. // 341 bytes of a gzipped FileDescriptorProto
  217. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xcd, 0x4e, 0xfa, 0x40,
  218. 0x14, 0xc5, 0x53, 0xe0, 0xdf, 0x3f, 0xbd, 0x21, 0x08, 0x17, 0x3f, 0x6a, 0xc3, 0xc2, 0xcc, 0xca,
  219. 0xb0, 0xa0, 0x51, 0x77, 0xac, 0x24, 0x6c, 0x70, 0x61, 0xd3, 0x40, 0xc2, 0x7e, 0xaa, 0x13, 0xd2,
  220. 0x08, 0x33, 0xb5, 0x73, 0xe9, 0x03, 0xf8, 0x0a, 0xbe, 0x84, 0xef, 0xe3, 0x2b, 0xb8, 0xf3, 0x25,
  221. 0xcc, 0x4c, 0x2b, 0x5f, 0x89, 0xbb, 0x33, 0xbf, 0xb9, 0xf7, 0x9c, 0xf4, 0x74, 0xc0, 0x2b, 0x32,
  222. 0x39, 0xcc, 0x72, 0x45, 0x0a, 0x6b, 0x59, 0x12, 0xf4, 0x97, 0x4a, 0x2d, 0x57, 0x22, 0xe4, 0x59,
  223. 0x1a, 0x72, 0x29, 0x15, 0x71, 0x4a, 0x95, 0xd4, 0xe5, 0x04, 0x43, 0xe8, 0x2c, 0xe2, 0x68, 0x4e,
  224. 0x9c, 0x36, 0x7a, 0x26, 0x5e, 0x37, 0x42, 0x13, 0xbb, 0x87, 0xf6, 0x22, 0x8e, 0x1e, 0x64, 0x4a,
  225. 0x15, 0xc1, 0x00, 0x9a, 0x53, 0xa5, 0x49, 0xf2, 0xb5, 0xf0, 0x9d, 0x2b, 0xe7, 0xda, 0x9b, 0x6d,
  226. 0xcf, 0x88, 0xd0, 0x88, 0x55, 0x4e, 0x7e, 0xcd, 0x72, 0xab, 0xd9, 0xb7, 0x03, 0xdd, 0x3d, 0x5b,
  227. 0x9d, 0x29, 0xa9, 0xed, 0x64, 0xb4, 0x73, 0xb0, 0x1a, 0x19, 0xb4, 0xe6, 0x22, 0x4f, 0xf9, 0x2a,
  228. 0xda, 0xac, 0x13, 0x91, 0x57, 0x2e, 0x07, 0xec, 0x20, 0xbd, 0xfe, 0x47, 0x7a, 0x63, 0x97, 0x6e,
  229. 0xd8, 0x44, 0xe4, 0xe4, 0xff, 0x2b, 0x99, 0xd1, 0x78, 0x0e, 0xee, 0x64, 0x6c, 0xa9, 0x6b, 0x69,
  230. 0x75, 0xc2, 0x0e, 0xd4, 0x23, 0x41, 0xfe, 0x7f, 0x0b, 0x8d, 0x34, 0xdb, 0x8f, 0x5c, 0xbf, 0xf8,
  231. 0xcd, 0x72, 0xdb, 0x68, 0xec, 0x83, 0x37, 0xc9, 0x05, 0x27, 0xf1, 0x3c, 0x26, 0xdf, 0xb3, 0x17,
  232. 0x3b, 0xc0, 0xba, 0x70, 0xb2, 0xed, 0xab, 0xfc, 0xd4, 0xdb, 0x0f, 0x07, 0xc0, 0x14, 0x20, 0xf2,
  233. 0x22, 0x7d, 0x12, 0x18, 0x83, 0x5b, 0x76, 0x81, 0xa7, 0xc3, 0x2c, 0x19, 0x1e, 0x37, 0x1e, 0x9c,
  234. 0x1d, 0xd1, 0xd2, 0x85, 0x5d, 0xbe, 0x7d, 0x7e, 0xbd, 0xd7, 0x7a, 0xac, 0x1d, 0x16, 0x37, 0x61,
  235. 0x91, 0xc9, 0x50, 0xdb, 0xfb, 0x91, 0x33, 0xc0, 0x29, 0x34, 0x4c, 0x20, 0x62, 0xb5, 0xb9, 0xf7,
  236. 0xb7, 0x82, 0xde, 0x01, 0xab, 0xbc, 0x2e, 0xac, 0x57, 0x97, 0xb5, 0x7e, 0xbd, 0x52, 0x99, 0xd2,
  237. 0xc8, 0x19, 0x24, 0xae, 0x7d, 0x08, 0x77, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x17, 0xd3, 0x4c,
  238. 0xab, 0x37, 0x02, 0x00, 0x00,
  239. }