Documentation
¶
Index ¶
- Variables
- func RegisterTunnelServer(s grpc.ServiceRegistrar, srv TunnelServer)
- type Chunk
- type Ping
- type Pong
- func (*Pong) Descriptor() ([]byte, []int)deprecated
- func (x *Pong) GetCommit() string
- func (x *Pong) GetStatus() string
- func (x *Pong) GetTime() string
- func (x *Pong) GetVersion() string
- func (*Pong) ProtoMessage()
- func (x *Pong) ProtoReflect() protoreflect.Message
- func (x *Pong) Reset()
- func (x *Pong) String() string
- type TunnelClient
- type TunnelServer
- type Tunnel_AutoClient
- type Tunnel_AutoServer
- type Tunnel_HttpClient
- type Tunnel_HttpServer
- type Tunnel_Socks5Client
- type Tunnel_Socks5Server
- type Tunnel_V2RaySsrClient
- type Tunnel_V2RaySsrServer
- type Tunnel_V2RayVlessClient
- type Tunnel_V2RayVlessServer
- type Tunnel_V2RayVmessClient
- type Tunnel_V2RayVmessServer
- type UnimplementedTunnelServer
- func (UnimplementedTunnelServer) Auto(Tunnel_AutoServer) error
- func (UnimplementedTunnelServer) Health(context.Context, *Ping) (*Pong, error)
- func (UnimplementedTunnelServer) Http(Tunnel_HttpServer) error
- func (UnimplementedTunnelServer) Socks5(Tunnel_Socks5Server) error
- func (UnimplementedTunnelServer) V2RaySsr(Tunnel_V2RaySsrServer) error
- func (UnimplementedTunnelServer) V2RayVless(Tunnel_V2RayVlessServer) error
- func (UnimplementedTunnelServer) V2RayVmess(Tunnel_V2RayVmessServer) error
- type UnsafeTunnelServer
Constants ¶
This section is empty.
Variables ¶
var File_tunnel_proto protoreflect.FileDescriptor
var Tunnel_ServiceDesc = grpc.ServiceDesc{ ServiceName: "tunnel.Tunnel", HandlerType: (*TunnelServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Health", Handler: _Tunnel_Health_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "Auto", Handler: _Tunnel_Auto_Handler, ServerStreams: true, ClientStreams: true, }, { StreamName: "Http", Handler: _Tunnel_Http_Handler, ServerStreams: true, ClientStreams: true, }, { StreamName: "Socks5", Handler: _Tunnel_Socks5_Handler, ServerStreams: true, ClientStreams: true, }, { StreamName: "V2raySsr", Handler: _Tunnel_V2RaySsr_Handler, ServerStreams: true, ClientStreams: true, }, { StreamName: "V2rayVmess", Handler: _Tunnel_V2RayVmess_Handler, ServerStreams: true, ClientStreams: true, }, { StreamName: "V2rayVless", Handler: _Tunnel_V2RayVless_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "tunnel.proto", }
Tunnel_ServiceDesc is the grpc.ServiceDesc for Tunnel service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTunnelServer ¶
func RegisterTunnelServer(s grpc.ServiceRegistrar, srv TunnelServer)
Types ¶
type Chunk ¶
type Chunk struct { Body []byte `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` Size int32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` // contains filtered or unexported fields }
func (*Chunk) Descriptor
deprecated
func (*Chunk) ProtoMessage ¶
func (*Chunk) ProtoMessage()
func (*Chunk) ProtoReflect ¶
func (x *Chunk) ProtoReflect() protoreflect.Message
type Ping ¶
type Ping struct { Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
func (*Ping) Descriptor
deprecated
func (*Ping) GetVersion ¶
func (*Ping) ProtoMessage ¶
func (*Ping) ProtoMessage()
func (*Ping) ProtoReflect ¶
func (x *Ping) ProtoReflect() protoreflect.Message
type Pong ¶
type Pong struct { Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` Time string `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"` Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` Commit string `protobuf:"bytes,4,opt,name=commit,proto3" json:"commit,omitempty"` // contains filtered or unexported fields }
func (*Pong) Descriptor
deprecated
func (*Pong) GetVersion ¶
func (*Pong) ProtoMessage ¶
func (*Pong) ProtoMessage()
func (*Pong) ProtoReflect ¶
func (x *Pong) ProtoReflect() protoreflect.Message
type TunnelClient ¶
type TunnelClient interface { Auto(ctx context.Context, opts ...grpc.CallOption) (Tunnel_AutoClient, error) Http(ctx context.Context, opts ...grpc.CallOption) (Tunnel_HttpClient, error) Socks5(ctx context.Context, opts ...grpc.CallOption) (Tunnel_Socks5Client, error) V2RaySsr(ctx context.Context, opts ...grpc.CallOption) (Tunnel_V2RaySsrClient, error) V2RayVmess(ctx context.Context, opts ...grpc.CallOption) (Tunnel_V2RayVmessClient, error) V2RayVless(ctx context.Context, opts ...grpc.CallOption) (Tunnel_V2RayVlessClient, error) Health(ctx context.Context, in *Ping, opts ...grpc.CallOption) (*Pong, error) }
TunnelClient is the client API for Tunnel 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.
func NewTunnelClient ¶
func NewTunnelClient(cc grpc.ClientConnInterface) TunnelClient
type TunnelServer ¶
type TunnelServer interface { Auto(Tunnel_AutoServer) error Http(Tunnel_HttpServer) error Socks5(Tunnel_Socks5Server) error V2RaySsr(Tunnel_V2RaySsrServer) error V2RayVmess(Tunnel_V2RayVmessServer) error V2RayVless(Tunnel_V2RayVlessServer) error Health(context.Context, *Ping) (*Pong, error) // contains filtered or unexported methods }
TunnelServer is the server API for Tunnel service. All implementations must embed UnimplementedTunnelServer for forward compatibility
type Tunnel_AutoClient ¶
type Tunnel_AutoServer ¶
type Tunnel_HttpClient ¶
type Tunnel_HttpServer ¶
type Tunnel_Socks5Client ¶
type Tunnel_Socks5Server ¶
type Tunnel_V2RaySsrClient ¶
type Tunnel_V2RaySsrServer ¶
type Tunnel_V2RayVlessClient ¶
type Tunnel_V2RayVlessServer ¶
type Tunnel_V2RayVmessClient ¶
type Tunnel_V2RayVmessServer ¶
type UnimplementedTunnelServer ¶
type UnimplementedTunnelServer struct { }
UnimplementedTunnelServer must be embedded to have forward compatible implementations.
func (UnimplementedTunnelServer) Auto ¶
func (UnimplementedTunnelServer) Auto(Tunnel_AutoServer) error
func (UnimplementedTunnelServer) Http ¶
func (UnimplementedTunnelServer) Http(Tunnel_HttpServer) error
func (UnimplementedTunnelServer) Socks5 ¶
func (UnimplementedTunnelServer) Socks5(Tunnel_Socks5Server) error
func (UnimplementedTunnelServer) V2RaySsr ¶
func (UnimplementedTunnelServer) V2RaySsr(Tunnel_V2RaySsrServer) error
func (UnimplementedTunnelServer) V2RayVless ¶
func (UnimplementedTunnelServer) V2RayVless(Tunnel_V2RayVlessServer) error
func (UnimplementedTunnelServer) V2RayVmess ¶
func (UnimplementedTunnelServer) V2RayVmess(Tunnel_V2RayVmessServer) error
type UnsafeTunnelServer ¶
type UnsafeTunnelServer interface {
// contains filtered or unexported methods
}
UnsafeTunnelServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TunnelServer will result in compilation errors.