best_rpc

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BestRpc_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "best_rpc.Best_rpc",
	HandlerType: (*BestRpcServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Ping",
			Handler:    _BestRpc_Ping_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "best_rpc.proto",
}

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

View Source
var File_best_rpc_proto protoreflect.FileDescriptor

Functions

func RegisterBestRpcServer

func RegisterBestRpcServer(s grpc.ServiceRegistrar, srv BestRpcServer)

Types

type BestRpcClient

type BestRpcClient interface {
	Ping(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}

BestRpcClient is the client API for BestRpc 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 NewBestRpcClient

func NewBestRpcClient(cc grpc.ClientConnInterface) BestRpcClient

type BestRpcServer

type BestRpcServer interface {
	Ping(context.Context, *Request) (*Response, error)
	// contains filtered or unexported methods
}

BestRpcServer is the server API for BestRpc service. All implementations must embed UnimplementedBestRpcServer for forward compatibility

type Request

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

func (*Request) Descriptor deprecated

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetPing

func (x *Request) GetPing() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

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

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

type Response

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

func (*Response) Descriptor deprecated

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetPong

func (x *Response) GetPong() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

type UnimplementedBestRpcServer

type UnimplementedBestRpcServer struct {
}

UnimplementedBestRpcServer must be embedded to have forward compatible implementations.

func (UnimplementedBestRpcServer) Ping

type UnsafeBestRpcServer

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

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

Jump to

Keyboard shortcuts

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