Documentation ¶
Overview ¶
Package foobar is just a gRPC sample service for examples and tests of the github.com/jucrouzet/grpcutils package, not meant to be used anywhere else.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DummyService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "foobar.DummyService", HandlerType: (*DummyServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Foo", Handler: _DummyService_Foo_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "FooS", Handler: _DummyService_FooS_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "service.proto", }
DummyService_ServiceDesc is the grpc.ServiceDesc for DummyService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDummyServiceServer ¶
func RegisterDummyServiceServer(s grpc.ServiceRegistrar, srv DummyServiceServer)
Types ¶
type DummyServiceClient ¶
type DummyServiceClient interface { Foo(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) FooS(ctx context.Context, opts ...grpc.CallOption) (DummyService_FooSClient, error) }
DummyServiceClient is the client API for DummyService 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 NewDummyServiceClient ¶
func NewDummyServiceClient(cc grpc.ClientConnInterface) DummyServiceClient
type DummyServiceServer ¶
type DummyServiceServer interface { Foo(context.Context, *Empty) (*Empty, error) FooS(DummyService_FooSServer) error // contains filtered or unexported methods }
DummyServiceServer is the server API for DummyService service. All implementations must embed UnimplementedDummyServiceServer for forward compatibility
type DummyService_FooSClient ¶
type DummyService_FooSServer ¶
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type UnimplementedDummyServiceServer ¶
type UnimplementedDummyServiceServer struct { }
UnimplementedDummyServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedDummyServiceServer) FooS ¶
func (UnimplementedDummyServiceServer) FooS(DummyService_FooSServer) error
type UnsafeDummyServiceServer ¶
type UnsafeDummyServiceServer interface {
// contains filtered or unexported methods
}
UnsafeDummyServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DummyServiceServer will result in compilation errors.