ping_pb

package
v0.0.0-...-456d83e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PingService_Ping_FullMethodName     = "/ping_pb.PingService/Ping"
	PingService_PingPong_FullMethodName = "/ping_pb.PingService/PingPong"
	PingService_PingEcho_FullMethodName = "/ping_pb.PingService/PingEcho"
)

Variables

View Source
var File_ping_pb_ping_proto protoreflect.FileDescriptor
View Source
var PingService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "ping_pb.PingService",
	HandlerType: (*PingServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Ping",
			Handler:    _PingService_Ping_Handler,
		},
		{
			MethodName: "PingPong",
			Handler:    _PingService_PingPong_Handler,
		},
		{
			MethodName: "PingEcho",
			Handler:    _PingService_PingEcho_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "ping_pb/ping.proto",
}

PingService_ServiceDesc is the grpc.ServiceDesc for PingService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterPingServiceServer

func RegisterPingServiceServer(s grpc.ServiceRegistrar, srv PingServiceServer)

Types

type PingEchoRequest

type PingEchoRequest struct {
	Body string `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

func (*PingEchoRequest) Descriptor deprecated

func (*PingEchoRequest) Descriptor() ([]byte, []int)

Deprecated: Use PingEchoRequest.ProtoReflect.Descriptor instead.

func (*PingEchoRequest) GetBody

func (x *PingEchoRequest) GetBody() string

func (*PingEchoRequest) ProtoMessage

func (*PingEchoRequest) ProtoMessage()

func (*PingEchoRequest) ProtoReflect

func (x *PingEchoRequest) ProtoReflect() protoreflect.Message

func (*PingEchoRequest) Reset

func (x *PingEchoRequest) Reset()

func (*PingEchoRequest) String

func (x *PingEchoRequest) String() string

type PingEchoResponse

type PingEchoResponse struct {
	Body string `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

func (*PingEchoResponse) Descriptor deprecated

func (*PingEchoResponse) Descriptor() ([]byte, []int)

Deprecated: Use PingEchoResponse.ProtoReflect.Descriptor instead.

func (*PingEchoResponse) GetBody

func (x *PingEchoResponse) GetBody() string

func (*PingEchoResponse) ProtoMessage

func (*PingEchoResponse) ProtoMessage()

func (*PingEchoResponse) ProtoReflect

func (x *PingEchoResponse) ProtoReflect() protoreflect.Message

func (*PingEchoResponse) Reset

func (x *PingEchoResponse) Reset()

func (*PingEchoResponse) String

func (x *PingEchoResponse) String() string

type PingPongRequest

type PingPongRequest struct {
	Body string `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

func (*PingPongRequest) Descriptor deprecated

func (*PingPongRequest) Descriptor() ([]byte, []int)

Deprecated: Use PingPongRequest.ProtoReflect.Descriptor instead.

func (*PingPongRequest) GetBody

func (x *PingPongRequest) GetBody() string

func (*PingPongRequest) ProtoMessage

func (*PingPongRequest) ProtoMessage()

func (*PingPongRequest) ProtoReflect

func (x *PingPongRequest) ProtoReflect() protoreflect.Message

func (*PingPongRequest) Reset

func (x *PingPongRequest) Reset()

func (*PingPongRequest) String

func (x *PingPongRequest) String() string

type PingPongResponse

type PingPongResponse struct {
	Body string `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

func (*PingPongResponse) Descriptor deprecated

func (*PingPongResponse) Descriptor() ([]byte, []int)

Deprecated: Use PingPongResponse.ProtoReflect.Descriptor instead.

func (*PingPongResponse) GetBody

func (x *PingPongResponse) GetBody() string

func (*PingPongResponse) ProtoMessage

func (*PingPongResponse) ProtoMessage()

func (*PingPongResponse) ProtoReflect

func (x *PingPongResponse) ProtoReflect() protoreflect.Message

func (*PingPongResponse) Reset

func (x *PingPongResponse) Reset()

func (*PingPongResponse) String

func (x *PingPongResponse) String() string

type PingRequest

type PingRequest struct {
	Body string `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

func (*PingRequest) Descriptor deprecated

func (*PingRequest) Descriptor() ([]byte, []int)

Deprecated: Use PingRequest.ProtoReflect.Descriptor instead.

func (*PingRequest) GetBody

func (x *PingRequest) GetBody() string

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 {
	Body string `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

func (*PingResponse) Descriptor deprecated

func (*PingResponse) Descriptor() ([]byte, []int)

Deprecated: Use PingResponse.ProtoReflect.Descriptor instead.

func (*PingResponse) GetBody

func (x *PingResponse) GetBody() string

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 PingServiceClient

type PingServiceClient interface {
	Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error)
	PingPong(ctx context.Context, in *PingPongRequest, opts ...grpc.CallOption) (*PingPongResponse, error)
	PingEcho(ctx context.Context, in *PingEchoRequest, opts ...grpc.CallOption) (*PingEchoResponse, error)
}

PingServiceClient is the client API for PingService 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.

type PingServiceServer

type PingServiceServer interface {
	Ping(context.Context, *PingRequest) (*PingResponse, error)
	PingPong(context.Context, *PingPongRequest) (*PingPongResponse, error)
	PingEcho(context.Context, *PingEchoRequest) (*PingEchoResponse, error)
	// contains filtered or unexported methods
}

PingServiceServer is the server API for PingService service. All implementations must embed UnimplementedPingServiceServer for forward compatibility

type UnimplementedPingServiceServer

type UnimplementedPingServiceServer struct {
}

UnimplementedPingServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedPingServiceServer) Ping

func (UnimplementedPingServiceServer) PingEcho

func (UnimplementedPingServiceServer) PingPong

type UnsafePingServiceServer

type UnsafePingServiceServer interface {
	// contains filtered or unexported methods
}

UnsafePingServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PingServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL