pb

package
v0.0.0-...-5c36c9a Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GoQuickGRPC_SendHello_FullMethodName = "/pb.GoQuickGRPC/SendHello"
)

Variables

View Source
var File_rpc_hello_proto protoreflect.FileDescriptor
View Source
var File_service_go_quick_grpc_proto protoreflect.FileDescriptor
View Source
var GoQuickGRPC_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pb.GoQuickGRPC",
	HandlerType: (*GoQuickGRPCServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SendHello",
			Handler:    _GoQuickGRPC_SendHello_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "service.go_quick_grpc.proto",
}

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

Functions

func RegisterGoQuickGRPCServer

func RegisterGoQuickGRPCServer(s grpc.ServiceRegistrar, srv GoQuickGRPCServer)

Types

type GoQuickGRPCClient

type GoQuickGRPCClient interface {
	SendHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloResponse, error)
}

GoQuickGRPCClient is the client API for GoQuickGRPC 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 GoQuickGRPCServer

type GoQuickGRPCServer interface {
	SendHello(context.Context, *HelloRequest) (*HelloResponse, error)
	// contains filtered or unexported methods
}

GoQuickGRPCServer is the server API for GoQuickGRPC service. All implementations must embed UnimplementedGoQuickGRPCServer for forward compatibility.

type HelloRequest

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

func (*HelloRequest) Descriptor deprecated

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

Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead.

func (*HelloRequest) GetMessage

func (x *HelloRequest) GetMessage() 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"`
	Timestamp      *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	TimestampMilli int64                  `protobuf:"varint,3,opt,name=timestampMilli,proto3" json:"timestampMilli,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) GetTimestamp

func (x *HelloResponse) GetTimestamp() *timestamppb.Timestamp

func (*HelloResponse) GetTimestampMilli

func (x *HelloResponse) GetTimestampMilli() int64

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 UnimplementedGoQuickGRPCServer

type UnimplementedGoQuickGRPCServer struct{}

UnimplementedGoQuickGRPCServer 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 (UnimplementedGoQuickGRPCServer) SendHello

type UnsafeGoQuickGRPCServer

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

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

Jump to

Keyboard shortcuts

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