vpn

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2026 License: CC0-1.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VpnServiceService_OnBind_FullMethodName                = "/vpn.VpnServiceService/OnBind"
	VpnServiceService_OnRevoke_FullMethodName              = "/vpn.VpnServiceService/OnRevoke"
	VpnServiceService_Protect1_FullMethodName              = "/vpn.VpnServiceService/Protect1"
	VpnServiceService_Protect1_1_FullMethodName            = "/vpn.VpnServiceService/Protect1_1"
	VpnServiceService_Protect1_2_FullMethodName            = "/vpn.VpnServiceService/Protect1_2"
	VpnServiceService_SetUnderlyingNetworks_FullMethodName = "/vpn.VpnServiceService/SetUnderlyingNetworks"
	VpnServiceService_Prepare_FullMethodName               = "/vpn.VpnServiceService/Prepare"
)

Variables

View Source
var File_proto_vpn_vpn_proto protoreflect.FileDescriptor
View Source
var VpnServiceService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "vpn.VpnServiceService",
	HandlerType: (*VpnServiceServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "OnBind",
			Handler:    _VpnServiceService_OnBind_Handler,
		},
		{
			MethodName: "OnRevoke",
			Handler:    _VpnServiceService_OnRevoke_Handler,
		},
		{
			MethodName: "Protect1",
			Handler:    _VpnServiceService_Protect1_Handler,
		},
		{
			MethodName: "Protect1_1",
			Handler:    _VpnServiceService_Protect1_1_Handler,
		},
		{
			MethodName: "Protect1_2",
			Handler:    _VpnServiceService_Protect1_2_Handler,
		},
		{
			MethodName: "SetUnderlyingNetworks",
			Handler:    _VpnServiceService_SetUnderlyingNetworks_Handler,
		},
		{
			MethodName: "Prepare",
			Handler:    _VpnServiceService_Prepare_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/vpn/vpn.proto",
}

VpnServiceService_ServiceDesc is the grpc.ServiceDesc for VpnServiceService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterVpnServiceServiceServer

func RegisterVpnServiceServiceServer(s grpc.ServiceRegistrar, srv VpnServiceServiceServer)

Types

type OnBindRequest

type OnBindRequest struct {
	Arg0 int64 `protobuf:"varint,1,opt,name=arg0,proto3" json:"arg0,omitempty"`
	// contains filtered or unexported fields
}

func (*OnBindRequest) Descriptor deprecated

func (*OnBindRequest) Descriptor() ([]byte, []int)

Deprecated: Use OnBindRequest.ProtoReflect.Descriptor instead.

func (*OnBindRequest) GetArg0

func (x *OnBindRequest) GetArg0() int64

func (*OnBindRequest) ProtoMessage

func (*OnBindRequest) ProtoMessage()

func (*OnBindRequest) ProtoReflect

func (x *OnBindRequest) ProtoReflect() protoreflect.Message

func (*OnBindRequest) Reset

func (x *OnBindRequest) Reset()

func (*OnBindRequest) String

func (x *OnBindRequest) String() string

type OnBindResponse

type OnBindResponse struct {
	Result int64 `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*OnBindResponse) Descriptor deprecated

func (*OnBindResponse) Descriptor() ([]byte, []int)

Deprecated: Use OnBindResponse.ProtoReflect.Descriptor instead.

func (*OnBindResponse) GetResult

func (x *OnBindResponse) GetResult() int64

func (*OnBindResponse) ProtoMessage

func (*OnBindResponse) ProtoMessage()

func (*OnBindResponse) ProtoReflect

func (x *OnBindResponse) ProtoReflect() protoreflect.Message

func (*OnBindResponse) Reset

func (x *OnBindResponse) Reset()

func (*OnBindResponse) String

func (x *OnBindResponse) String() string

type OnRevokeRequest

type OnRevokeRequest struct {
	// contains filtered or unexported fields
}

func (*OnRevokeRequest) Descriptor deprecated

func (*OnRevokeRequest) Descriptor() ([]byte, []int)

Deprecated: Use OnRevokeRequest.ProtoReflect.Descriptor instead.

func (*OnRevokeRequest) ProtoMessage

func (*OnRevokeRequest) ProtoMessage()

func (*OnRevokeRequest) ProtoReflect

func (x *OnRevokeRequest) ProtoReflect() protoreflect.Message

func (*OnRevokeRequest) Reset

func (x *OnRevokeRequest) Reset()

func (*OnRevokeRequest) String

func (x *OnRevokeRequest) String() string

type OnRevokeResponse

type OnRevokeResponse struct {
	// contains filtered or unexported fields
}

func (*OnRevokeResponse) Descriptor deprecated

func (*OnRevokeResponse) Descriptor() ([]byte, []int)

Deprecated: Use OnRevokeResponse.ProtoReflect.Descriptor instead.

func (*OnRevokeResponse) ProtoMessage

func (*OnRevokeResponse) ProtoMessage()

func (*OnRevokeResponse) ProtoReflect

func (x *OnRevokeResponse) ProtoReflect() protoreflect.Message

func (*OnRevokeResponse) Reset

func (x *OnRevokeResponse) Reset()

func (*OnRevokeResponse) String

func (x *OnRevokeResponse) String() string

type PrepareRequest

type PrepareRequest struct {
	Arg0 int64 `protobuf:"varint,1,opt,name=arg0,proto3" json:"arg0,omitempty"`
	// contains filtered or unexported fields
}

func (*PrepareRequest) Descriptor deprecated

func (*PrepareRequest) Descriptor() ([]byte, []int)

Deprecated: Use PrepareRequest.ProtoReflect.Descriptor instead.

func (*PrepareRequest) GetArg0

func (x *PrepareRequest) GetArg0() int64

func (*PrepareRequest) ProtoMessage

func (*PrepareRequest) ProtoMessage()

func (*PrepareRequest) ProtoReflect

func (x *PrepareRequest) ProtoReflect() protoreflect.Message

func (*PrepareRequest) Reset

func (x *PrepareRequest) Reset()

func (*PrepareRequest) String

func (x *PrepareRequest) String() string

type PrepareResponse

type PrepareResponse struct {
	Result int64 `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*PrepareResponse) Descriptor deprecated

func (*PrepareResponse) Descriptor() ([]byte, []int)

Deprecated: Use PrepareResponse.ProtoReflect.Descriptor instead.

func (*PrepareResponse) GetResult

func (x *PrepareResponse) GetResult() int64

func (*PrepareResponse) ProtoMessage

func (*PrepareResponse) ProtoMessage()

func (*PrepareResponse) ProtoReflect

func (x *PrepareResponse) ProtoReflect() protoreflect.Message

func (*PrepareResponse) Reset

func (x *PrepareResponse) Reset()

func (*PrepareResponse) String

func (x *PrepareResponse) String() string

type Protect1Request

type Protect1Request struct {
	Arg0 int32 `protobuf:"varint,1,opt,name=arg0,proto3" json:"arg0,omitempty"`
	// contains filtered or unexported fields
}

func (*Protect1Request) Descriptor deprecated

func (*Protect1Request) Descriptor() ([]byte, []int)

Deprecated: Use Protect1Request.ProtoReflect.Descriptor instead.

func (*Protect1Request) GetArg0

func (x *Protect1Request) GetArg0() int32

func (*Protect1Request) ProtoMessage

func (*Protect1Request) ProtoMessage()

func (*Protect1Request) ProtoReflect

func (x *Protect1Request) ProtoReflect() protoreflect.Message

func (*Protect1Request) Reset

func (x *Protect1Request) Reset()

func (*Protect1Request) String

func (x *Protect1Request) String() string

type Protect1Response

type Protect1Response struct {
	Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*Protect1Response) Descriptor deprecated

func (*Protect1Response) Descriptor() ([]byte, []int)

Deprecated: Use Protect1Response.ProtoReflect.Descriptor instead.

func (*Protect1Response) GetResult

func (x *Protect1Response) GetResult() bool

func (*Protect1Response) ProtoMessage

func (*Protect1Response) ProtoMessage()

func (*Protect1Response) ProtoReflect

func (x *Protect1Response) ProtoReflect() protoreflect.Message

func (*Protect1Response) Reset

func (x *Protect1Response) Reset()

func (*Protect1Response) String

func (x *Protect1Response) String() string

type Protect1_1Request

type Protect1_1Request struct {
	Arg0 int64 `protobuf:"varint,1,opt,name=arg0,proto3" json:"arg0,omitempty"`
	// contains filtered or unexported fields
}

func (*Protect1_1Request) Descriptor deprecated

func (*Protect1_1Request) Descriptor() ([]byte, []int)

Deprecated: Use Protect1_1Request.ProtoReflect.Descriptor instead.

func (*Protect1_1Request) GetArg0

func (x *Protect1_1Request) GetArg0() int64

func (*Protect1_1Request) ProtoMessage

func (*Protect1_1Request) ProtoMessage()

func (*Protect1_1Request) ProtoReflect

func (x *Protect1_1Request) ProtoReflect() protoreflect.Message

func (*Protect1_1Request) Reset

func (x *Protect1_1Request) Reset()

func (*Protect1_1Request) String

func (x *Protect1_1Request) String() string

type Protect1_1Response

type Protect1_1Response struct {
	Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*Protect1_1Response) Descriptor deprecated

func (*Protect1_1Response) Descriptor() ([]byte, []int)

Deprecated: Use Protect1_1Response.ProtoReflect.Descriptor instead.

func (*Protect1_1Response) GetResult

func (x *Protect1_1Response) GetResult() bool

func (*Protect1_1Response) ProtoMessage

func (*Protect1_1Response) ProtoMessage()

func (*Protect1_1Response) ProtoReflect

func (x *Protect1_1Response) ProtoReflect() protoreflect.Message

func (*Protect1_1Response) Reset

func (x *Protect1_1Response) Reset()

func (*Protect1_1Response) String

func (x *Protect1_1Response) String() string

type Protect1_2Request

type Protect1_2Request struct {
	Arg0 int64 `protobuf:"varint,1,opt,name=arg0,proto3" json:"arg0,omitempty"`
	// contains filtered or unexported fields
}

func (*Protect1_2Request) Descriptor deprecated

func (*Protect1_2Request) Descriptor() ([]byte, []int)

Deprecated: Use Protect1_2Request.ProtoReflect.Descriptor instead.

func (*Protect1_2Request) GetArg0

func (x *Protect1_2Request) GetArg0() int64

func (*Protect1_2Request) ProtoMessage

func (*Protect1_2Request) ProtoMessage()

func (*Protect1_2Request) ProtoReflect

func (x *Protect1_2Request) ProtoReflect() protoreflect.Message

func (*Protect1_2Request) Reset

func (x *Protect1_2Request) Reset()

func (*Protect1_2Request) String

func (x *Protect1_2Request) String() string

type Protect1_2Response

type Protect1_2Response struct {
	Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*Protect1_2Response) Descriptor deprecated

func (*Protect1_2Response) Descriptor() ([]byte, []int)

Deprecated: Use Protect1_2Response.ProtoReflect.Descriptor instead.

func (*Protect1_2Response) GetResult

func (x *Protect1_2Response) GetResult() bool

func (*Protect1_2Response) ProtoMessage

func (*Protect1_2Response) ProtoMessage()

func (*Protect1_2Response) ProtoReflect

func (x *Protect1_2Response) ProtoReflect() protoreflect.Message

func (*Protect1_2Response) Reset

func (x *Protect1_2Response) Reset()

func (*Protect1_2Response) String

func (x *Protect1_2Response) String() string

type SetUnderlyingNetworksRequest

type SetUnderlyingNetworksRequest struct {
	Arg0 int64 `protobuf:"varint,1,opt,name=arg0,proto3" json:"arg0,omitempty"`
	// contains filtered or unexported fields
}

func (*SetUnderlyingNetworksRequest) Descriptor deprecated

func (*SetUnderlyingNetworksRequest) Descriptor() ([]byte, []int)

Deprecated: Use SetUnderlyingNetworksRequest.ProtoReflect.Descriptor instead.

func (*SetUnderlyingNetworksRequest) GetArg0

func (x *SetUnderlyingNetworksRequest) GetArg0() int64

func (*SetUnderlyingNetworksRequest) ProtoMessage

func (*SetUnderlyingNetworksRequest) ProtoMessage()

func (*SetUnderlyingNetworksRequest) ProtoReflect

func (*SetUnderlyingNetworksRequest) Reset

func (x *SetUnderlyingNetworksRequest) Reset()

func (*SetUnderlyingNetworksRequest) String

type SetUnderlyingNetworksResponse

type SetUnderlyingNetworksResponse struct {
	Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*SetUnderlyingNetworksResponse) Descriptor deprecated

func (*SetUnderlyingNetworksResponse) Descriptor() ([]byte, []int)

Deprecated: Use SetUnderlyingNetworksResponse.ProtoReflect.Descriptor instead.

func (*SetUnderlyingNetworksResponse) GetResult

func (x *SetUnderlyingNetworksResponse) GetResult() bool

func (*SetUnderlyingNetworksResponse) ProtoMessage

func (*SetUnderlyingNetworksResponse) ProtoMessage()

func (*SetUnderlyingNetworksResponse) ProtoReflect

func (*SetUnderlyingNetworksResponse) Reset

func (x *SetUnderlyingNetworksResponse) Reset()

func (*SetUnderlyingNetworksResponse) String

type UnimplementedVpnServiceServiceServer

type UnimplementedVpnServiceServiceServer struct{}

UnimplementedVpnServiceServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedVpnServiceServiceServer) OnBind

func (UnimplementedVpnServiceServiceServer) OnRevoke

func (UnimplementedVpnServiceServiceServer) Prepare

func (UnimplementedVpnServiceServiceServer) Protect1

func (UnimplementedVpnServiceServiceServer) Protect1_1

func (UnimplementedVpnServiceServiceServer) Protect1_2

type UnsafeVpnServiceServiceServer

type UnsafeVpnServiceServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeVpnServiceServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VpnServiceServiceServer will result in compilation errors.

type VpnServiceServiceClient

type VpnServiceServiceClient interface {
	OnBind(ctx context.Context, in *OnBindRequest, opts ...grpc.CallOption) (*OnBindResponse, error)
	OnRevoke(ctx context.Context, in *OnRevokeRequest, opts ...grpc.CallOption) (*OnRevokeResponse, error)
	Protect1(ctx context.Context, in *Protect1Request, opts ...grpc.CallOption) (*Protect1Response, error)
	Protect1_1(ctx context.Context, in *Protect1_1Request, opts ...grpc.CallOption) (*Protect1_1Response, error)
	Protect1_2(ctx context.Context, in *Protect1_2Request, opts ...grpc.CallOption) (*Protect1_2Response, error)
	SetUnderlyingNetworks(ctx context.Context, in *SetUnderlyingNetworksRequest, opts ...grpc.CallOption) (*SetUnderlyingNetworksResponse, error)
	Prepare(ctx context.Context, in *PrepareRequest, opts ...grpc.CallOption) (*PrepareResponse, error)
}

VpnServiceServiceClient is the client API for VpnServiceService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type VpnServiceServiceServer

VpnServiceServiceServer is the server API for VpnServiceService service. All implementations must embed UnimplementedVpnServiceServiceServer for forward compatibility.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL