Documentation ¶
Index ¶
Constants ¶
const (
Pinger_Ping_FullMethodName = "/teleport.lib.multiplexer.test.Pinger/Ping"
)
Variables ¶
var File_teleport_lib_multiplexer_test_ping_proto protoreflect.FileDescriptor
var Pinger_ServiceDesc = grpc.ServiceDesc{ ServiceName: "teleport.lib.multiplexer.test.Pinger", HandlerType: (*PingerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Ping", Handler: _Pinger_Ping_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "teleport/lib/multiplexer/test/ping.proto", }
Pinger_ServiceDesc is the grpc.ServiceDesc for Pinger service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPingerServer ¶
func RegisterPingerServer(s grpc.ServiceRegistrar, srv PingerServer)
Types ¶
type PingerClient ¶
type PingerClient interface {
Ping(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}
PingerClient is the client API for Pinger 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 NewPingerClient ¶
func NewPingerClient(cc grpc.ClientConnInterface) PingerClient
type PingerServer ¶
type PingerServer interface { Ping(context.Context, *Request) (*Response, error) // contains filtered or unexported methods }
PingerServer is the server API for Pinger service. All implementations must embed UnimplementedPingerServer for forward compatibility
type Request ¶
type Request struct { Payload string `protobuf:"bytes,1,opt,name=Payload,proto3" json:"Payload,omitempty"` // contains filtered or unexported fields }
func (*Request) Descriptor
deprecated
func (*Request) GetPayload ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct { Payload string `protobuf:"bytes,1,opt,name=Payload,proto3" json:"Payload,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) GetPayload ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type UnimplementedPingerServer ¶
type UnimplementedPingerServer struct { }
UnimplementedPingerServer must be embedded to have forward compatible implementations.
type UnsafePingerServer ¶
type UnsafePingerServer interface {
// contains filtered or unexported methods
}
UnsafePingerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PingerServer will result in compilation errors.