ping

package
v0.3.13 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PingService_Ping_FullMethodName       = "/ping.PingService/Ping"
	PingService_PingStream_FullMethodName = "/ping.PingService/PingStream"
	PingService_Hello_FullMethodName      = "/ping.PingService/Hello"
)
View Source
const OperationPingServiceHello = "/PingService/Hello"
View Source
const OperationPingServicePing = "/PingService/Ping"
View Source
const OperationPingV2Ping = "/Ping_v2/Ping"
View Source
const TRACER_NAME_PING = "github.com/dizzrt/ellie/internal/mock/ping"
View Source
const TRACER_NAME_PINGV2 = "github.com/dizzrt/ellie/internal/mock/ping"

Variables

View Source
var File_pingv2_proto protoreflect.FileDescriptor
View Source
var PingService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "ping.PingService",
	HandlerType: (*PingServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Ping",
			Handler:    _PingService_Ping_Handler,
		},
		{
			MethodName: "Hello",
			Handler:    _PingService_Hello_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "PingStream",
			Handler:       _PingService_PingStream_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "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 RegisterPingServiceHTTPServer

func RegisterPingServiceHTTPServer(hs *http.Server, srv PingServiceHTTPServer)

func RegisterPingServiceServer

func RegisterPingServiceServer(s grpc.ServiceRegistrar, srv PingServiceServer)

func RegisterPingV2HTTPServer added in v0.3.5

func RegisterPingV2HTTPServer(hs *http.Server, srv PingV2HTTPServer)

Types

type HelloRequest

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

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) GetType

func (x *HelloRequest) GetType() 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
}

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 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 {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty" k1:"v1" kk:"v1,v2"` // test tags tags:`k1:"v1" kk:"v1,v2"`
	// contains filtered or unexported fields
}

func (*PingResponse) Descriptor deprecated

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

Deprecated: Use PingResponse.ProtoReflect.Descriptor instead.

func (*PingResponse) GetMessage

func (x *PingResponse) GetMessage() 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)
	PingStream(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[PingRequest, PingResponse], error)
	Hello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloResponse, 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 PingServiceHTTPServer

type PingServiceHTTPServer interface {
	Hello(context.Context, *HelloRequest) (*HelloResponse, error)
	// Ping Ping is a simple ping request
	Ping(context.Context, *PingRequest) (*PingResponse, error)
}

type PingServiceServer

type PingServiceServer interface {
	Ping(context.Context, *PingRequest) (*PingResponse, error)
	PingStream(grpc.BidiStreamingServer[PingRequest, PingResponse]) error
	Hello(context.Context, *HelloRequest) (*HelloResponse, error)
	// contains filtered or unexported methods
}

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

type PingService_PingStreamClient

type PingService_PingStreamClient = grpc.BidiStreamingClient[PingRequest, PingResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type PingService_PingStreamServer

type PingService_PingStreamServer = grpc.BidiStreamingServer[PingRequest, PingResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type PingV2HTTPServer added in v0.3.5

type PingV2HTTPServer interface {
	Ping(context.Context, *PingV2Request) (*PingV2Response, error)
}

type PingV2Request added in v0.3.5

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

func (*PingV2Request) Descriptor deprecated added in v0.3.5

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

Deprecated: Use PingV2Request.ProtoReflect.Descriptor instead.

func (*PingV2Request) GetMessage added in v0.3.5

func (x *PingV2Request) GetMessage() string

func (*PingV2Request) ProtoMessage added in v0.3.5

func (*PingV2Request) ProtoMessage()

func (*PingV2Request) ProtoReflect added in v0.3.5

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

func (*PingV2Request) Reset added in v0.3.5

func (x *PingV2Request) Reset()

func (*PingV2Request) String added in v0.3.5

func (x *PingV2Request) String() string

type PingV2Response added in v0.3.5

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

func (*PingV2Response) Descriptor deprecated added in v0.3.5

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

Deprecated: Use PingV2Response.ProtoReflect.Descriptor instead.

func (*PingV2Response) GetMessage added in v0.3.5

func (x *PingV2Response) GetMessage() string

func (*PingV2Response) ProtoMessage added in v0.3.5

func (*PingV2Response) ProtoMessage()

func (*PingV2Response) ProtoReflect added in v0.3.5

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

func (*PingV2Response) Reset added in v0.3.5

func (x *PingV2Response) Reset()

func (*PingV2Response) String added in v0.3.5

func (x *PingV2Response) String() string

type UnimplementedPingServiceServer

type UnimplementedPingServiceServer struct{}

UnimplementedPingServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedPingServiceServer) Hello

func (UnimplementedPingServiceServer) Ping

func (UnimplementedPingServiceServer) PingStream

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