Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_wrapped_proto protoreflect.FileDescriptor
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) GetBytesMessage(context.Context, *wrappers.BytesValue) (*wrappers.BytesValue, error)
func (UnimplementedWrappedServiceServer) GetMessage ¶
func (UnimplementedWrappedServiceServer) GetMessage(context.Context, *wrappers.StringValue) (*wrappers.StringValue, error)
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 ¶
func (s *WrappedService) GetMessage(ctx context.Context, req *wrappers.StringValue) (*wrappers.StringValue, error)
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.
func NewWrappedServiceClient ¶
func NewWrappedServiceClient(cc grpc.ClientConnInterface) WrappedServiceClient
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