Documentation
¶
Index ¶
Constants ¶
const (
TCPService_Close_FullMethodName = "/tcp.v1.TCPService/Close"
)
Variables ¶
var File_tcp_v1_service_proto protoreflect.FileDescriptor
var TCPService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "tcp.v1.TCPService", HandlerType: (*TCPServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Close", Handler: _TCPService_Close_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "tcp/v1/service.proto", }
TCPService_ServiceDesc is the grpc.ServiceDesc for TCPService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTCPServiceServer ¶
func RegisterTCPServiceServer(s grpc.ServiceRegistrar, srv TCPServiceServer)
Types ¶
type CloseRequest ¶
type CloseRequest struct {
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
// contains filtered or unexported fields
}
func (*CloseRequest) Descriptor
deprecated
func (*CloseRequest) Descriptor() ([]byte, []int)
Deprecated: Use CloseRequest.ProtoReflect.Descriptor instead.
func (*CloseRequest) GetUuid ¶
func (x *CloseRequest) GetUuid() string
func (*CloseRequest) ProtoMessage ¶
func (*CloseRequest) ProtoMessage()
func (*CloseRequest) ProtoReflect ¶
func (x *CloseRequest) ProtoReflect() protoreflect.Message
func (*CloseRequest) Reset ¶
func (x *CloseRequest) Reset()
func (*CloseRequest) String ¶
func (x *CloseRequest) String() string
type Response ¶
type Response struct {
Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
// contains filtered or unexported fields
}
func (*Response) Descriptor
deprecated
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type TCPServiceClient ¶
type TCPServiceClient interface {
Close(ctx context.Context, in *CloseRequest, opts ...grpc.CallOption) (*Response, error)
}
TCPServiceClient is the client API for TCPService 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.
TCPService exposes runtime control over open TCP connections handled by the tcp plugin. Close terminates a single connection identified by its UUID.
func NewTCPServiceClient ¶
func NewTCPServiceClient(cc grpc.ClientConnInterface) TCPServiceClient
type TCPServiceServer ¶
type TCPServiceServer interface {
Close(context.Context, *CloseRequest) (*Response, error)
// contains filtered or unexported methods
}
TCPServiceServer is the server API for TCPService service. All implementations must embed UnimplementedTCPServiceServer for forward compatibility.
TCPService exposes runtime control over open TCP connections handled by the tcp plugin. Close terminates a single connection identified by its UUID.
type UnimplementedTCPServiceServer ¶
type UnimplementedTCPServiceServer struct{}
UnimplementedTCPServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedTCPServiceServer) Close ¶
func (UnimplementedTCPServiceServer) Close(context.Context, *CloseRequest) (*Response, error)
type UnsafeTCPServiceServer ¶
type UnsafeTCPServiceServer interface {
// contains filtered or unexported methods
}
UnsafeTCPServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TCPServiceServer will result in compilation errors.