wrapped

package
v0.100.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_wrapped_proto protoreflect.FileDescriptor
View Source
var WrappedService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "wrapped.WrappedService",
	HandlerType: (*WrappedServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetMessage",
			Handler:    _WrappedService_GetMessage_Handler,
		},
		{
			MethodName: "GetBytesMessage",
			Handler:    _WrappedService_GetBytesMessage_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "wrapped.proto",
}

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

Functions

func RegisterWrappedServiceServer

func RegisterWrappedServiceServer(s grpc.ServiceRegistrar, srv WrappedServiceServer)

Types

type UnimplementedWrappedServiceServer

type UnimplementedWrappedServiceServer struct {
}

UnimplementedWrappedServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedWrappedServiceServer) GetBytesMessage added in v0.100.0

func (UnimplementedWrappedServiceServer) GetMessage

type UnsafeWrappedServiceServer added in v0.100.0

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

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

type WrappedService

type WrappedService struct{}

func (*WrappedService) GetBytesMessage added in v0.100.0

func (s *WrappedService) GetBytesMessage(ctx context.Context, req *wrappers.BytesValue) (*wrappers.BytesValue, error)

func (*WrappedService) GetMessage

type WrappedServiceClient

type WrappedServiceClient interface {
	GetMessage(ctx context.Context, in *wrappers.StringValue, opts ...grpc.CallOption) (*wrappers.StringValue, error)
	GetBytesMessage(ctx context.Context, in *wrappers.BytesValue, opts ...grpc.CallOption) (*wrappers.BytesValue, error)
}

WrappedServiceClient is the client API for WrappedService 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 WrappedServiceServer

type WrappedServiceServer interface {
	GetMessage(context.Context, *wrappers.StringValue) (*wrappers.StringValue, error)
	GetBytesMessage(context.Context, *wrappers.BytesValue) (*wrappers.BytesValue, error)
	// contains filtered or unexported methods
}

WrappedServiceServer is the server API for WrappedService service. All implementations must embed UnimplementedWrappedServiceServer for forward compatibility

Jump to

Keyboard shortcuts

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