Documentation ¶
Index ¶
- Variables
- func RegisterGostTunelServer(s grpc.ServiceRegistrar, srv GostTunelServer)
- func RegisterGostTunelServerX(s grpc.ServiceRegistrar, srv GostTunelServer, method string)
- func ServerDesc(method string) grpc.ServiceDesc
- type Chunk
- type GostTunelClient
- type GostTunelClientX
- type GostTunelServer
- type GostTunel_TunnelClient
- type GostTunel_TunnelServer
- type UnimplementedGostTunelServer
- type UnsafeGostTunelServer
Constants ¶
This section is empty.
Variables ¶
var File_gost_proto protoreflect.FileDescriptor
var GostTunel_ServiceDesc = grpc.ServiceDesc{ ServiceName: "GostTunel", HandlerType: (*GostTunelServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Tunnel", Handler: _GostTunel_Tunnel_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "gost.proto", }
GostTunel_ServiceDesc is the grpc.ServiceDesc for GostTunel service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterGostTunelServer ¶
func RegisterGostTunelServer(s grpc.ServiceRegistrar, srv GostTunelServer)
func RegisterGostTunelServerX ¶
func RegisterGostTunelServerX(s grpc.ServiceRegistrar, srv GostTunelServer, 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 GostTunelClient ¶
type GostTunelClient interface {
Tunnel(ctx context.Context, opts ...grpc.CallOption) (GostTunel_TunnelClient, error)
}
GostTunelClient is the client API for GostTunel 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 NewGostTunelClient ¶
func NewGostTunelClient(cc grpc.ClientConnInterface) GostTunelClient
type GostTunelClientX ¶
type GostTunelClientX interface {
TunnelX(ctx context.Context, method string, opts ...grpc.CallOption) (GostTunel_TunnelClient, error)
}
func NewGostTunelClientX ¶
func NewGostTunelClientX(cc grpc.ClientConnInterface) GostTunelClientX
type GostTunelServer ¶
type GostTunelServer interface { Tunnel(GostTunel_TunnelServer) error // contains filtered or unexported methods }
GostTunelServer is the server API for GostTunel service. All implementations must embed UnimplementedGostTunelServer for forward compatibility
type GostTunel_TunnelClient ¶
type GostTunel_TunnelServer ¶
type UnimplementedGostTunelServer ¶
type UnimplementedGostTunelServer struct { }
UnimplementedGostTunelServer must be embedded to have forward compatible implementations.
func (UnimplementedGostTunelServer) Tunnel ¶
func (UnimplementedGostTunelServer) Tunnel(GostTunel_TunnelServer) error
type UnsafeGostTunelServer ¶
type UnsafeGostTunelServer interface {
// contains filtered or unexported methods
}
UnsafeGostTunelServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GostTunelServer will result in compilation errors.