grpcping

package
v1.45.2 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FramePing_SayPing_FullMethodName = "/grpcping.FramePing/SayPing"
)

Variables

View Source
var File_grpcping_frameping_proto protoreflect.FileDescriptor
View Source
var FramePing_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "grpcping.FramePing",
	HandlerType: (*FramePingServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SayPing",
			Handler:    _FramePing_SayPing_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "grpcping/frameping.proto",
}

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

Functions

func RegisterFramePingServer

func RegisterFramePingServer(s grpc.ServiceRegistrar, srv FramePingServer)

Types

type FramePingClient

type FramePingClient interface {
	// Sends a ping
	SayPing(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloResponse, error)
}

FramePingClient is the client API for FramePing 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 NewFramePingClient

func NewFramePingClient(cc grpc.ClientConnInterface) FramePingClient

type FramePingServer

type FramePingServer interface {
	// Sends a ping
	SayPing(context.Context, *HelloRequest) (*HelloResponse, error)
	// contains filtered or unexported methods
}

FramePingServer is the server API for FramePing service. All implementations must embed UnimplementedFramePingServer for forward compatibility

type HelloRequest

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

The request message containing the user's name.

func (*HelloRequest) Descriptor deprecated

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

Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead.

func (*HelloRequest) GetName

func (x *HelloRequest) GetName() string

func (*HelloRequest) ProtoMessage

func (*HelloRequest) ProtoMessage()

func (*HelloRequest) ProtoReflect

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

func (*HelloRequest) Reset

func (x *HelloRequest) Reset()

func (*HelloRequest) String

func (x *HelloRequest) String() string

type HelloResponse

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

The response message containing the pong

func (*HelloResponse) Descriptor deprecated

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

Deprecated: Use HelloResponse.ProtoReflect.Descriptor instead.

func (*HelloResponse) GetMessage

func (x *HelloResponse) GetMessage() string

func (*HelloResponse) ProtoMessage

func (*HelloResponse) ProtoMessage()

func (*HelloResponse) ProtoReflect

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

func (*HelloResponse) Reset

func (x *HelloResponse) Reset()

func (*HelloResponse) String

func (x *HelloResponse) String() string

type UnimplementedFramePingServer

type UnimplementedFramePingServer struct {
}

UnimplementedFramePingServer must be embedded to have forward compatible implementations.

func (UnimplementedFramePingServer) SayPing

type UnsafeFramePingServer

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

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

Jump to

Keyboard shortcuts

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