foobar

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

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

View Source
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)

View Source
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.

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_FooSClient interface {
	Send(*Empty) error
	Recv() (*Empty, error)
	grpc.ClientStream
}

type DummyService_FooSServer

type DummyService_FooSServer interface {
	Send(*Empty) error
	Recv() (*Empty, error)
	grpc.ServerStream
}

type Empty

type Empty struct {
	// contains filtered or unexported fields
}

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type UnimplementedDummyServiceServer

type UnimplementedDummyServiceServer struct {
}

UnimplementedDummyServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedDummyServiceServer) Foo

func (UnimplementedDummyServiceServer) FooS

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.

Jump to

Keyboard shortcuts

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