Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_pinger_pinger_proto protoreflect.FileDescriptor
var File_pinger_pinger_service_proto protoreflect.FileDescriptor
var PingerService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pinger.PingerService", HandlerType: (*PingerServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Ping", Handler: _PingerService_Ping_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pinger/pinger_service.proto", }
PingerService_ServiceDesc is the grpc.ServiceDesc for PingerService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPingerServiceServer ¶
func RegisterPingerServiceServer(s grpc.ServiceRegistrar, srv PingerServiceServer)
Types ¶
type PingRequest ¶
type PingRequest struct {
// contains filtered or unexported fields
}
func (*PingRequest) Descriptor
deprecated
func (*PingRequest) Descriptor() ([]byte, []int)
Deprecated: Use PingRequest.ProtoReflect.Descriptor instead.
func (*PingRequest) ProtoMessage ¶
func (*PingRequest) ProtoMessage()
func (*PingRequest) ProtoReflect ¶
func (x *PingRequest) ProtoReflect() protoreflect.Message
func (*PingRequest) Reset ¶
func (x *PingRequest) Reset()
func (*PingRequest) String ¶
func (x *PingRequest) String() string
type PingResponse ¶
type PingResponse struct {
// contains filtered or unexported fields
}
func (*PingResponse) Descriptor
deprecated
func (*PingResponse) Descriptor() ([]byte, []int)
Deprecated: Use PingResponse.ProtoReflect.Descriptor instead.
func (*PingResponse) ProtoMessage ¶
func (*PingResponse) ProtoMessage()
func (*PingResponse) ProtoReflect ¶
func (x *PingResponse) ProtoReflect() protoreflect.Message
func (*PingResponse) Reset ¶
func (x *PingResponse) Reset()
func (*PingResponse) String ¶
func (x *PingResponse) String() string
type PingerServiceClient ¶
type PingerServiceClient interface {
Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error)
}
PingerServiceClient is the client API for PingerService 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 NewPingerServiceClient ¶
func NewPingerServiceClient(cc grpc.ClientConnInterface) PingerServiceClient
type PingerServiceServer ¶
type PingerServiceServer interface { Ping(context.Context, *PingRequest) (*PingResponse, error) // contains filtered or unexported methods }
PingerServiceServer is the server API for PingerService service. All implementations must embed UnimplementedPingerServiceServer for forward compatibility
type UnimplementedPingerServiceServer ¶
type UnimplementedPingerServiceServer struct { }
UnimplementedPingerServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedPingerServiceServer) Ping ¶
func (UnimplementedPingerServiceServer) Ping(context.Context, *PingRequest) (*PingResponse, error)
type UnsafePingerServiceServer ¶
type UnsafePingerServiceServer interface {
// contains filtered or unexported methods
}
UnsafePingerServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PingerServiceServer will result in compilation errors.