| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // source: vpn.proto
- package pb
- import proto "github.com/golang/protobuf/proto"
- import fmt "fmt"
- import math "math"
- import _ "google.golang.org/genproto/googleapis/api/annotations"
- import (
- context "golang.org/x/net/context"
- grpc "google.golang.org/grpc"
- )
- // Reference imports to suppress errors if they are not otherwise used.
- var _ = proto.Marshal
- var _ = fmt.Errorf
- var _ = math.Inf
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the proto package it is being compiled against.
- // A compilation error at this line likely means your copy of the
- // proto package needs to be updated.
- const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
- 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 fileDescriptor_vpn_a36938fb10df2565, []int{0}
- }
- type VPNStatusRequest struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *VPNStatusRequest) Reset() { *m = VPNStatusRequest{} }
- func (m *VPNStatusRequest) String() string { return proto.CompactTextString(m) }
- func (*VPNStatusRequest) ProtoMessage() {}
- func (*VPNStatusRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_vpn_a36938fb10df2565, []int{0}
- }
- func (m *VPNStatusRequest) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_VPNStatusRequest.Unmarshal(m, b)
- }
- func (m *VPNStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_VPNStatusRequest.Marshal(b, m, deterministic)
- }
- func (dst *VPNStatusRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_VPNStatusRequest.Merge(dst, src)
- }
- func (m *VPNStatusRequest) XXX_Size() int {
- return xxx_messageInfo_VPNStatusRequest.Size(m)
- }
- func (m *VPNStatusRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_VPNStatusRequest.DiscardUnknown(m)
- }
- var xxx_messageInfo_VPNStatusRequest proto.InternalMessageInfo
- 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"`
- ProtoPref VPNProto `protobuf:"varint,3,opt,name=proto_pref,json=protoPref,enum=pb.VPNProto" json:"proto_pref,omitempty"`
- IpBlock string `protobuf:"bytes,4,opt,name=ip_block,json=ipBlock" json:"ip_block,omitempty"`
- Dns string `protobuf:"bytes,5,opt,name=dns" json:"dns,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *VPNInitRequest) Reset() { *m = VPNInitRequest{} }
- func (m *VPNInitRequest) String() string { return proto.CompactTextString(m) }
- func (*VPNInitRequest) ProtoMessage() {}
- func (*VPNInitRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_vpn_a36938fb10df2565, []int{1}
- }
- func (m *VPNInitRequest) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_VPNInitRequest.Unmarshal(m, b)
- }
- func (m *VPNInitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_VPNInitRequest.Marshal(b, m, deterministic)
- }
- func (dst *VPNInitRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_VPNInitRequest.Merge(dst, src)
- }
- func (m *VPNInitRequest) XXX_Size() int {
- return xxx_messageInfo_VPNInitRequest.Size(m)
- }
- func (m *VPNInitRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_VPNInitRequest.DiscardUnknown(m)
- }
- var xxx_messageInfo_VPNInitRequest proto.InternalMessageInfo
- func (m *VPNInitRequest) GetHostname() string {
- if m != nil {
- return m.Hostname
- }
- return ""
- }
- func (m *VPNInitRequest) GetPort() string {
- if m != nil {
- return m.Port
- }
- return ""
- }
- func (m *VPNInitRequest) GetProtoPref() VPNProto {
- if m != nil {
- return m.ProtoPref
- }
- return VPNProto_NOPREF
- }
- func (m *VPNInitRequest) GetIpBlock() string {
- if m != nil {
- return m.IpBlock
- }
- return ""
- }
- func (m *VPNInitRequest) GetDns() string {
- if m != nil {
- return m.Dns
- }
- return ""
- }
- type VPNUpdateRequest struct {
- IpBlock string `protobuf:"bytes,1,opt,name=ip_block,json=ipBlock" json:"ip_block,omitempty"`
- Dns string `protobuf:"bytes,2,opt,name=dns" json:"dns,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *VPNUpdateRequest) Reset() { *m = VPNUpdateRequest{} }
- func (m *VPNUpdateRequest) String() string { return proto.CompactTextString(m) }
- func (*VPNUpdateRequest) ProtoMessage() {}
- func (*VPNUpdateRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_vpn_a36938fb10df2565, []int{2}
- }
- func (m *VPNUpdateRequest) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_VPNUpdateRequest.Unmarshal(m, b)
- }
- func (m *VPNUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_VPNUpdateRequest.Marshal(b, m, deterministic)
- }
- func (dst *VPNUpdateRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_VPNUpdateRequest.Merge(dst, src)
- }
- func (m *VPNUpdateRequest) XXX_Size() int {
- return xxx_messageInfo_VPNUpdateRequest.Size(m)
- }
- func (m *VPNUpdateRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_VPNUpdateRequest.DiscardUnknown(m)
- }
- var xxx_messageInfo_VPNUpdateRequest proto.InternalMessageInfo
- func (m *VPNUpdateRequest) GetIpBlock() string {
- if m != nil {
- return m.IpBlock
- }
- return ""
- }
- func (m *VPNUpdateRequest) GetDns() string {
- if m != nil {
- return m.Dns
- }
- return ""
- }
- type VPNRestartRequest struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *VPNRestartRequest) Reset() { *m = VPNRestartRequest{} }
- func (m *VPNRestartRequest) String() string { return proto.CompactTextString(m) }
- func (*VPNRestartRequest) ProtoMessage() {}
- func (*VPNRestartRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_vpn_a36938fb10df2565, []int{3}
- }
- func (m *VPNRestartRequest) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_VPNRestartRequest.Unmarshal(m, b)
- }
- func (m *VPNRestartRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_VPNRestartRequest.Marshal(b, m, deterministic)
- }
- func (dst *VPNRestartRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_VPNRestartRequest.Merge(dst, src)
- }
- func (m *VPNRestartRequest) XXX_Size() int {
- return xxx_messageInfo_VPNRestartRequest.Size(m)
- }
- func (m *VPNRestartRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_VPNRestartRequest.DiscardUnknown(m)
- }
- var xxx_messageInfo_VPNRestartRequest proto.InternalMessageInfo
- type VPNStatusResponse struct {
- Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
- SerialNumber string `protobuf:"bytes,2,opt,name=serial_number,json=serialNumber" json:"serial_number,omitempty"`
- Hostname string `protobuf:"bytes,3,opt,name=hostname" json:"hostname,omitempty"`
- Port string `protobuf:"bytes,4,opt,name=port" json:"port,omitempty"`
- Cert string `protobuf:"bytes,5,opt,name=cert" json:"cert,omitempty"`
- CaCert string `protobuf:"bytes,6,opt,name=ca_cert,json=caCert" json:"ca_cert,omitempty"`
- 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=created_at,json=createdAt" json:"created_at,omitempty"`
- Proto string `protobuf:"bytes,10,opt,name=proto" json:"proto,omitempty"`
- Dns string `protobuf:"bytes,11,opt,name=dns" json:"dns,omitempty"`
- ExpiresAt string `protobuf:"bytes,12,opt,name=expires_at,json=expiresAt" json:"expires_at,omitempty"`
- CaExpiresAt string `protobuf:"bytes,13,opt,name=ca_expires_at,json=caExpiresAt" json:"ca_expires_at,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *VPNStatusResponse) Reset() { *m = VPNStatusResponse{} }
- func (m *VPNStatusResponse) String() string { return proto.CompactTextString(m) }
- func (*VPNStatusResponse) ProtoMessage() {}
- func (*VPNStatusResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_vpn_a36938fb10df2565, []int{4}
- }
- func (m *VPNStatusResponse) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_VPNStatusResponse.Unmarshal(m, b)
- }
- func (m *VPNStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_VPNStatusResponse.Marshal(b, m, deterministic)
- }
- func (dst *VPNStatusResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_VPNStatusResponse.Merge(dst, src)
- }
- func (m *VPNStatusResponse) XXX_Size() int {
- return xxx_messageInfo_VPNStatusResponse.Size(m)
- }
- func (m *VPNStatusResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_VPNStatusResponse.DiscardUnknown(m)
- }
- var xxx_messageInfo_VPNStatusResponse proto.InternalMessageInfo
- func (m *VPNStatusResponse) GetName() string {
- if m != nil {
- return m.Name
- }
- return ""
- }
- func (m *VPNStatusResponse) GetSerialNumber() string {
- if m != nil {
- return m.SerialNumber
- }
- return ""
- }
- func (m *VPNStatusResponse) GetHostname() string {
- if m != nil {
- return m.Hostname
- }
- return ""
- }
- func (m *VPNStatusResponse) GetPort() string {
- if m != nil {
- return m.Port
- }
- return ""
- }
- func (m *VPNStatusResponse) GetCert() string {
- if m != nil {
- return m.Cert
- }
- return ""
- }
- func (m *VPNStatusResponse) GetCaCert() string {
- if m != nil {
- return m.CaCert
- }
- return ""
- }
- func (m *VPNStatusResponse) GetNet() string {
- if m != nil {
- return m.Net
- }
- return ""
- }
- func (m *VPNStatusResponse) GetMask() string {
- if m != nil {
- return m.Mask
- }
- return ""
- }
- func (m *VPNStatusResponse) GetCreatedAt() string {
- if m != nil {
- return m.CreatedAt
- }
- return ""
- }
- func (m *VPNStatusResponse) GetProto() string {
- if m != nil {
- return m.Proto
- }
- return ""
- }
- func (m *VPNStatusResponse) GetDns() string {
- if m != nil {
- return m.Dns
- }
- return ""
- }
- func (m *VPNStatusResponse) GetExpiresAt() string {
- if m != nil {
- return m.ExpiresAt
- }
- return ""
- }
- func (m *VPNStatusResponse) GetCaExpiresAt() string {
- if m != nil {
- return m.CaExpiresAt
- }
- return ""
- }
- type VPNInitResponse struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *VPNInitResponse) Reset() { *m = VPNInitResponse{} }
- func (m *VPNInitResponse) String() string { return proto.CompactTextString(m) }
- func (*VPNInitResponse) ProtoMessage() {}
- func (*VPNInitResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_vpn_a36938fb10df2565, []int{5}
- }
- func (m *VPNInitResponse) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_VPNInitResponse.Unmarshal(m, b)
- }
- func (m *VPNInitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_VPNInitResponse.Marshal(b, m, deterministic)
- }
- func (dst *VPNInitResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_VPNInitResponse.Merge(dst, src)
- }
- func (m *VPNInitResponse) XXX_Size() int {
- return xxx_messageInfo_VPNInitResponse.Size(m)
- }
- func (m *VPNInitResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_VPNInitResponse.DiscardUnknown(m)
- }
- var xxx_messageInfo_VPNInitResponse proto.InternalMessageInfo
- type VPNUpdateResponse struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *VPNUpdateResponse) Reset() { *m = VPNUpdateResponse{} }
- func (m *VPNUpdateResponse) String() string { return proto.CompactTextString(m) }
- func (*VPNUpdateResponse) ProtoMessage() {}
- func (*VPNUpdateResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_vpn_a36938fb10df2565, []int{6}
- }
- func (m *VPNUpdateResponse) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_VPNUpdateResponse.Unmarshal(m, b)
- }
- func (m *VPNUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_VPNUpdateResponse.Marshal(b, m, deterministic)
- }
- func (dst *VPNUpdateResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_VPNUpdateResponse.Merge(dst, src)
- }
- func (m *VPNUpdateResponse) XXX_Size() int {
- return xxx_messageInfo_VPNUpdateResponse.Size(m)
- }
- func (m *VPNUpdateResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_VPNUpdateResponse.DiscardUnknown(m)
- }
- var xxx_messageInfo_VPNUpdateResponse proto.InternalMessageInfo
- type VPNRestartResponse struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *VPNRestartResponse) Reset() { *m = VPNRestartResponse{} }
- func (m *VPNRestartResponse) String() string { return proto.CompactTextString(m) }
- func (*VPNRestartResponse) ProtoMessage() {}
- func (*VPNRestartResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_vpn_a36938fb10df2565, []int{7}
- }
- func (m *VPNRestartResponse) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_VPNRestartResponse.Unmarshal(m, b)
- }
- func (m *VPNRestartResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_VPNRestartResponse.Marshal(b, m, deterministic)
- }
- func (dst *VPNRestartResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_VPNRestartResponse.Merge(dst, src)
- }
- func (m *VPNRestartResponse) XXX_Size() int {
- return xxx_messageInfo_VPNRestartResponse.Size(m)
- }
- func (m *VPNRestartResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_VPNRestartResponse.DiscardUnknown(m)
- }
- var xxx_messageInfo_VPNRestartResponse proto.InternalMessageInfo
- func init() {
- proto.RegisterType((*VPNStatusRequest)(nil), "pb.VPNStatusRequest")
- proto.RegisterType((*VPNInitRequest)(nil), "pb.VPNInitRequest")
- proto.RegisterType((*VPNUpdateRequest)(nil), "pb.VPNUpdateRequest")
- proto.RegisterType((*VPNRestartRequest)(nil), "pb.VPNRestartRequest")
- proto.RegisterType((*VPNStatusResponse)(nil), "pb.VPNStatusResponse")
- proto.RegisterType((*VPNInitResponse)(nil), "pb.VPNInitResponse")
- proto.RegisterType((*VPNUpdateResponse)(nil), "pb.VPNUpdateResponse")
- proto.RegisterType((*VPNRestartResponse)(nil), "pb.VPNRestartResponse")
- proto.RegisterEnum("pb.VPNProto", VPNProto_name, VPNProto_value)
- }
- // Reference imports to suppress errors if they are not otherwise used.
- var _ context.Context
- var _ grpc.ClientConn
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the grpc package it is being compiled against.
- const _ = grpc.SupportPackageIsVersion4
- // VPNServiceClient is the client API for VPNService service.
- //
- // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
- type VPNServiceClient interface {
- Status(ctx context.Context, in *VPNStatusRequest, opts ...grpc.CallOption) (*VPNStatusResponse, error)
- Init(ctx context.Context, in *VPNInitRequest, opts ...grpc.CallOption) (*VPNInitResponse, error)
- Update(ctx context.Context, in *VPNUpdateRequest, opts ...grpc.CallOption) (*VPNUpdateResponse, error)
- Restart(ctx context.Context, in *VPNRestartRequest, opts ...grpc.CallOption) (*VPNRestartResponse, error)
- }
- type vPNServiceClient struct {
- cc *grpc.ClientConn
- }
- func NewVPNServiceClient(cc *grpc.ClientConn) VPNServiceClient {
- return &vPNServiceClient{cc}
- }
- func (c *vPNServiceClient) Status(ctx context.Context, in *VPNStatusRequest, opts ...grpc.CallOption) (*VPNStatusResponse, error) {
- out := new(VPNStatusResponse)
- err := c.cc.Invoke(ctx, "/pb.VPNService/Status", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *vPNServiceClient) Init(ctx context.Context, in *VPNInitRequest, opts ...grpc.CallOption) (*VPNInitResponse, error) {
- out := new(VPNInitResponse)
- err := c.cc.Invoke(ctx, "/pb.VPNService/Init", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *vPNServiceClient) Update(ctx context.Context, in *VPNUpdateRequest, opts ...grpc.CallOption) (*VPNUpdateResponse, error) {
- out := new(VPNUpdateResponse)
- err := c.cc.Invoke(ctx, "/pb.VPNService/Update", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *vPNServiceClient) Restart(ctx context.Context, in *VPNRestartRequest, opts ...grpc.CallOption) (*VPNRestartResponse, error) {
- out := new(VPNRestartResponse)
- err := c.cc.Invoke(ctx, "/pb.VPNService/Restart", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // VPNServiceServer is the server API for VPNService service.
- type VPNServiceServer interface {
- Status(context.Context, *VPNStatusRequest) (*VPNStatusResponse, error)
- Init(context.Context, *VPNInitRequest) (*VPNInitResponse, error)
- Update(context.Context, *VPNUpdateRequest) (*VPNUpdateResponse, error)
- Restart(context.Context, *VPNRestartRequest) (*VPNRestartResponse, error)
- }
- func RegisterVPNServiceServer(s *grpc.Server, srv VPNServiceServer) {
- s.RegisterService(&_VPNService_serviceDesc, srv)
- }
- func _VPNService_Status_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(VPNStatusRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(VPNServiceServer).Status(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.VPNService/Status",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(VPNServiceServer).Status(ctx, req.(*VPNStatusRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _VPNService_Init_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(VPNInitRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(VPNServiceServer).Init(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.VPNService/Init",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(VPNServiceServer).Init(ctx, req.(*VPNInitRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _VPNService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(VPNUpdateRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(VPNServiceServer).Update(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.VPNService/Update",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(VPNServiceServer).Update(ctx, req.(*VPNUpdateRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _VPNService_Restart_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(VPNRestartRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(VPNServiceServer).Restart(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.VPNService/Restart",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(VPNServiceServer).Restart(ctx, req.(*VPNRestartRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- var _VPNService_serviceDesc = grpc.ServiceDesc{
- ServiceName: "pb.VPNService",
- HandlerType: (*VPNServiceServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "Status",
- Handler: _VPNService_Status_Handler,
- },
- {
- MethodName: "Init",
- Handler: _VPNService_Init_Handler,
- },
- {
- MethodName: "Update",
- Handler: _VPNService_Update_Handler,
- },
- {
- MethodName: "Restart",
- Handler: _VPNService_Restart_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "vpn.proto",
- }
- func init() { proto.RegisterFile("vpn.proto", fileDescriptor_vpn_a36938fb10df2565) }
- var fileDescriptor_vpn_a36938fb10df2565 = []byte{
- // 568 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x93, 0xcd, 0x6e, 0xd3, 0x40,
- 0x10, 0xc7, 0xb1, 0x93, 0xe6, 0x63, 0xfa, 0x81, 0x3b, 0x4d, 0xa9, 0x09, 0x54, 0xaa, 0xcc, 0xa5,
- 0x2a, 0x52, 0x23, 0xca, 0x8d, 0x0b, 0x2a, 0xa5, 0x48, 0x48, 0xc8, 0x98, 0xd0, 0xe6, 0x6a, 0x6d,
- 0xdc, 0x6d, 0xb1, 0xda, 0xac, 0x97, 0xdd, 0x4d, 0xc4, 0x99, 0x57, 0xe0, 0xc6, 0x6b, 0x71, 0x82,
- 0x33, 0x0f, 0x82, 0x3c, 0xbb, 0x0e, 0x76, 0x04, 0xb7, 0xf1, 0x7f, 0x66, 0x7f, 0x9a, 0xf9, 0xcf,
- 0x18, 0xfa, 0x0b, 0x29, 0x8e, 0xa5, 0x2a, 0x4c, 0x81, 0xbe, 0x9c, 0x0e, 0x1f, 0xdf, 0x14, 0xc5,
- 0xcd, 0x1d, 0x1f, 0x31, 0x99, 0x8f, 0x98, 0x10, 0x85, 0x61, 0x26, 0x2f, 0x84, 0xb6, 0x15, 0x11,
- 0x42, 0x30, 0x49, 0xe2, 0x8f, 0x86, 0x99, 0xb9, 0x1e, 0xf3, 0xcf, 0x73, 0xae, 0x4d, 0xf4, 0xdd,
- 0x83, 0xad, 0x49, 0x12, 0xbf, 0x15, 0xb9, 0x71, 0x12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