proto

package
v0.0.0-...-b532d83 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_tunnel_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Chunk.ProtoReflect.Descriptor instead.

func (*Chunk) GetBody

func (x *Chunk) GetBody() []byte

func (*Chunk) GetSize

func (x *Chunk) GetSize() int32

func (*Chunk) ProtoMessage

func (*Chunk) ProtoMessage()

func (*Chunk) ProtoReflect

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

func (*Chunk) Reset

func (x *Chunk) Reset()

func (*Chunk) String

func (x *Chunk) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Ping.ProtoReflect.Descriptor instead.

func (*Ping) GetVersion

func (x *Ping) GetVersion() string

func (*Ping) ProtoMessage

func (*Ping) ProtoMessage()

func (*Ping) ProtoReflect

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

func (*Ping) Reset

func (x *Ping) Reset()

func (*Ping) String

func (x *Ping) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Pong.ProtoReflect.Descriptor instead.

func (*Pong) GetCommit

func (x *Pong) GetCommit() string

func (*Pong) GetStatus

func (x *Pong) GetStatus() string

func (*Pong) GetTime

func (x *Pong) GetTime() string

func (*Pong) GetVersion

func (x *Pong) GetVersion() string

func (*Pong) ProtoMessage

func (*Pong) ProtoMessage()

func (*Pong) ProtoReflect

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

func (*Pong) Reset

func (x *Pong) Reset()

func (*Pong) String

func (x *Pong) String() string

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_AutoClient interface {
	Send(*Chunk) error
	Recv() (*Chunk, error)
	grpc.ClientStream
}

type Tunnel_AutoServer

type Tunnel_AutoServer interface {
	Send(*Chunk) error
	Recv() (*Chunk, error)
	grpc.ServerStream
}

type Tunnel_HttpClient

type Tunnel_HttpClient interface {
	Send(*Chunk) error
	Recv() (*Chunk, error)
	grpc.ClientStream
}

type Tunnel_HttpServer

type Tunnel_HttpServer interface {
	Send(*Chunk) error
	Recv() (*Chunk, error)
	grpc.ServerStream
}

type Tunnel_Socks5Client

type Tunnel_Socks5Client interface {
	Send(*Chunk) error
	Recv() (*Chunk, error)
	grpc.ClientStream
}

type Tunnel_Socks5Server

type Tunnel_Socks5Server interface {
	Send(*Chunk) error
	Recv() (*Chunk, error)
	grpc.ServerStream
}

type Tunnel_V2RaySsrClient

type Tunnel_V2RaySsrClient interface {
	Send(*Chunk) error
	Recv() (*Chunk, error)
	grpc.ClientStream
}

type Tunnel_V2RaySsrServer

type Tunnel_V2RaySsrServer interface {
	Send(*Chunk) error
	Recv() (*Chunk, error)
	grpc.ServerStream
}

type Tunnel_V2RayVlessClient

type Tunnel_V2RayVlessClient interface {
	Send(*Chunk) error
	Recv() (*Chunk, error)
	grpc.ClientStream
}

type Tunnel_V2RayVlessServer

type Tunnel_V2RayVlessServer interface {
	Send(*Chunk) error
	Recv() (*Chunk, error)
	grpc.ServerStream
}

type Tunnel_V2RayVmessClient

type Tunnel_V2RayVmessClient interface {
	Send(*Chunk) error
	Recv() (*Chunk, error)
	grpc.ClientStream
}

type Tunnel_V2RayVmessServer

type Tunnel_V2RayVmessServer interface {
	Send(*Chunk) error
	Recv() (*Chunk, error)
	grpc.ServerStream
}

type UnimplementedTunnelServer

type UnimplementedTunnelServer struct {
}

UnimplementedTunnelServer must be embedded to have forward compatible implementations.

func (UnimplementedTunnelServer) Auto

func (UnimplementedTunnelServer) Health

func (UnimplementedTunnelServer) Http

func (UnimplementedTunnelServer) Socks5

func (UnimplementedTunnelServer) V2RaySsr

func (UnimplementedTunnelServer) V2RayVless

func (UnimplementedTunnelServer) V2RayVmess

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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