Documentation ¶
Index ¶
- Variables
- func RegisterGRPCTunnelServer(s grpc.ServiceRegistrar, srv GRPCTunnelServer)
- func RegisterGRPCTunnelServerAddon(s grpc.ServiceRegistrar, srv GRPCTunnelServer, serviceName string)
- type Bytes
- type GRPCTunnelClient
- type GRPCTunnelServer
- type GRPCTunnel_ConnectClient
- type GRPCTunnel_ConnectServer
- type TunnelPeer
- type UnimplementedGRPCTunnelServer
- type UnsafeGRPCTunnelServer
Constants ¶
This section is empty.
Variables ¶
var File_core_grpc_tunnel_grpc_tunnel_proto protoreflect.FileDescriptor
var GRPCTunnel_ServiceDesc = grpc.ServiceDesc{ ServiceName: "grpc_tunnel.GRPCTunnel", HandlerType: (*GRPCTunnelServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Connect", Handler: _GRPCTunnel_Connect_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "core/grpc_tunnel/grpc_tunnel.proto", }
GRPCTunnel_ServiceDesc is the grpc.ServiceDesc for GRPCTunnel service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterGRPCTunnelServer ¶
func RegisterGRPCTunnelServer(s grpc.ServiceRegistrar, srv GRPCTunnelServer)
func RegisterGRPCTunnelServerAddon ¶
func RegisterGRPCTunnelServerAddon(s grpc.ServiceRegistrar, srv GRPCTunnelServer, serviceName string)
Types ¶
type Bytes ¶
type Bytes struct { B []byte `protobuf:"bytes,1,opt,name=b,proto3" json:"b,omitempty"` // contains filtered or unexported fields }
func (*Bytes) Descriptor
deprecated
func (*Bytes) ProtoMessage ¶
func (*Bytes) ProtoMessage()
func (*Bytes) ProtoReflect ¶
func (x *Bytes) ProtoReflect() protoreflect.Message
type GRPCTunnelClient ¶
type GRPCTunnelClient interface {
Connect(ctx context.Context, opts ...grpc.CallOption) (GRPCTunnel_ConnectClient, error)
}
GRPCTunnelClient is the client API for GRPCTunnel 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 NewGRPCTunnelClient ¶
func NewGRPCTunnelClient(cc grpc.ClientConnInterface) GRPCTunnelClient
func NewGRPCTunnelClientAddon ¶
func NewGRPCTunnelClientAddon(cc grpc.ClientConnInterface, serviceName string) GRPCTunnelClient
type GRPCTunnelServer ¶
type GRPCTunnelServer interface { Connect(GRPCTunnel_ConnectServer) error // contains filtered or unexported methods }
GRPCTunnelServer is the server API for GRPCTunnel service. All implementations must embed UnimplementedGRPCTunnelServer for forward compatibility
type TunnelPeer ¶
TunnelPeer is a abbr for both gRPC client and server.
type UnimplementedGRPCTunnelServer ¶
type UnimplementedGRPCTunnelServer struct { }
UnimplementedGRPCTunnelServer must be embedded to have forward compatible implementations.
func (UnimplementedGRPCTunnelServer) Connect ¶
func (UnimplementedGRPCTunnelServer) Connect(GRPCTunnel_ConnectServer) error
type UnsafeGRPCTunnelServer ¶
type UnsafeGRPCTunnelServer interface {
// contains filtered or unexported methods
}
UnsafeGRPCTunnelServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GRPCTunnelServer will result in compilation errors.