Documentation
¶
Index ¶
- Variables
- func RegisterTnetTunelServer(s grpc.ServiceRegistrar, srv TnetTunelServer)
- func RegisterTnetTunelServerX(s grpc.ServiceRegistrar, srv TnetTunelServer, method string)
- func ServerDesc(method string) grpc.ServiceDesc
- type Chunk
- type TnetTunelClient
- type TnetTunelClientX
- type TnetTunelServer
- type TnetTunel_TunnelClient
- type TnetTunel_TunnelServer
- type UnimplementedTnetTunelServer
- type UnsafeTnetTunelServer
Constants ¶
This section is empty.
Variables ¶
var File_tnet_proto protoreflect.FileDescriptor
var TnetTunel_ServiceDesc = grpc.ServiceDesc{ ServiceName: "TnetTunel", HandlerType: (*TnetTunelServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Tunnel", Handler: _TnetTunel_Tunnel_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "tnet.proto", }
TnetTunel_ServiceDesc is the grpc.ServiceDesc for TnetTunel service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTnetTunelServer ¶ added in v0.7.5
func RegisterTnetTunelServer(s grpc.ServiceRegistrar, srv TnetTunelServer)
func RegisterTnetTunelServerX ¶ added in v0.7.5
func RegisterTnetTunelServerX(s grpc.ServiceRegistrar, srv TnetTunelServer, method string)
func ServerDesc ¶
func ServerDesc(method string) grpc.ServiceDesc
Types ¶
type Chunk ¶
type Chunk struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,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 TnetTunelClient ¶ added in v0.7.5
type TnetTunelClient interface {
Tunnel(ctx context.Context, opts ...grpc.CallOption) (TnetTunel_TunnelClient, error)
}
TnetTunelClient is the client API for TnetTunel 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 NewTnetTunelClient ¶ added in v0.7.5
func NewTnetTunelClient(cc grpc.ClientConnInterface) TnetTunelClient
type TnetTunelClientX ¶ added in v0.7.5
type TnetTunelClientX interface {
TunnelX(ctx context.Context, method string, opts ...grpc.CallOption) (TnetTunel_TunnelClient, error)
}
func NewTnetTunelClientX ¶ added in v0.7.5
func NewTnetTunelClientX(cc grpc.ClientConnInterface) TnetTunelClientX
type TnetTunelServer ¶ added in v0.7.5
type TnetTunelServer interface { Tunnel(TnetTunel_TunnelServer) error // contains filtered or unexported methods }
TnetTunelServer is the server API for TnetTunel service. All implementations must embed UnimplementedTnetTunelServer for forward compatibility
type TnetTunel_TunnelClient ¶ added in v0.7.5
type TnetTunel_TunnelServer ¶ added in v0.7.5
type UnimplementedTnetTunelServer ¶ added in v0.7.5
type UnimplementedTnetTunelServer struct { }
UnimplementedTnetTunelServer must be embedded to have forward compatible implementations.
func (UnimplementedTnetTunelServer) Tunnel ¶ added in v0.7.5
func (UnimplementedTnetTunelServer) Tunnel(TnetTunel_TunnelServer) error
type UnsafeTnetTunelServer ¶ added in v0.7.5
type UnsafeTnetTunelServer interface {
// contains filtered or unexported methods
}
UnsafeTnetTunelServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TnetTunelServer will result in compilation errors.