Documentation ¶
Index ¶
Constants ¶
const (
PongService_Pong_FullMethodName = "/proto.v1.PongService/Pong"
)
Variables ¶
var File_pongservice_proto protoreflect.FileDescriptor
var PongService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.v1.PongService", HandlerType: (*PongServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Pong", Handler: _PongService_Pong_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pongservice.proto", }
PongService_ServiceDesc is the grpc.ServiceDesc for PongService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPongServiceServer ¶
func RegisterPongServiceServer(s grpc.ServiceRegistrar, srv PongServiceServer)
Types ¶
type PongRequest ¶
type PongRequest struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*PongRequest) Descriptor
deprecated
func (*PongRequest) Descriptor() ([]byte, []int)
Deprecated: Use PongRequest.ProtoReflect.Descriptor instead.
func (*PongRequest) GetMsg ¶
func (x *PongRequest) GetMsg() string
func (*PongRequest) ProtoMessage ¶
func (*PongRequest) ProtoMessage()
func (*PongRequest) ProtoReflect ¶
func (x *PongRequest) ProtoReflect() protoreflect.Message
func (*PongRequest) Reset ¶
func (x *PongRequest) Reset()
func (*PongRequest) String ¶
func (x *PongRequest) String() string
type PongResponse ¶
type PongResponse struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*PongResponse) Descriptor
deprecated
func (*PongResponse) Descriptor() ([]byte, []int)
Deprecated: Use PongResponse.ProtoReflect.Descriptor instead.
func (*PongResponse) GetMsg ¶
func (x *PongResponse) GetMsg() string
func (*PongResponse) ProtoMessage ¶
func (*PongResponse) ProtoMessage()
func (*PongResponse) ProtoReflect ¶
func (x *PongResponse) ProtoReflect() protoreflect.Message
func (*PongResponse) Reset ¶
func (x *PongResponse) Reset()
func (*PongResponse) String ¶
func (x *PongResponse) String() string
type PongServiceClient ¶
type PongServiceClient interface {
Pong(ctx context.Context, in *PongRequest, opts ...grpc.CallOption) (*PongResponse, error)
}
PongServiceClient is the client API for PongService 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 NewPongServiceClient ¶
func NewPongServiceClient(cc grpc.ClientConnInterface) PongServiceClient
type PongServiceServer ¶
type PongServiceServer interface { Pong(context.Context, *PongRequest) (*PongResponse, error) // contains filtered or unexported methods }
PongServiceServer is the server API for PongService service. All implementations must embed UnimplementedPongServiceServer for forward compatibility
type UnimplementedPongServiceServer ¶
type UnimplementedPongServiceServer struct { }
UnimplementedPongServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedPongServiceServer) Pong ¶
func (UnimplementedPongServiceServer) Pong(context.Context, *PongRequest) (*PongResponse, error)
type UnsafePongServiceServer ¶
type UnsafePongServiceServer interface {
// contains filtered or unexported methods
}
UnsafePongServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PongServiceServer will result in compilation errors.