v1

package
v0.0.0-...-a2aa5d8 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (
	PongService_Pong_FullMethodName = "/proto.v1.PongService/Pong"
)

Variables

View Source
var File_pongservice_proto protoreflect.FileDescriptor
View Source
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.

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

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.

Directories

Path Synopsis
Package v1 is a reverse proxy.
Package v1 is a reverse proxy.

Jump to

Keyboard shortcuts

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