Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_tunnel_proto protoreflect.FileDescriptor
var Tunnel_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pb.Tunnel", HandlerType: (*TunnelServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Stream", Handler: _Tunnel_Stream_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 Message ¶ added in v1.33.0
type Message struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
added in
v1.33.0
func (*Message) ProtoMessage ¶ added in v1.33.0
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶ added in v1.33.0
func (x *Message) ProtoReflect() protoreflect.Message
type TunnelClient ¶
type TunnelClient interface {
Stream(ctx context.Context, opts ...grpc.CallOption) (Tunnel_StreamClient, 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 { Stream(Tunnel_StreamServer) error // contains filtered or unexported methods }
TunnelServer is the server API for Tunnel service. All implementations must embed UnimplementedTunnelServer for forward compatibility
type Tunnel_StreamClient ¶
type Tunnel_StreamServer ¶
type UnimplementedTunnelServer ¶
type UnimplementedTunnelServer struct { }
UnimplementedTunnelServer must be embedded to have forward compatible implementations.
func (UnimplementedTunnelServer) Stream ¶
func (UnimplementedTunnelServer) Stream(Tunnel_StreamServer) 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.