pb

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: LGPL-2.1 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Converter_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pb.Converter",
	HandlerType: (*ConverterServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "HumanName",
			Handler:    _Converter_HumanName_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "message.proto",
}

Converter_ServiceDesc is the grpc.ServiceDesc for Converter 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_message_proto protoreflect.FileDescriptor

Functions

func RegisterConverterServer

func RegisterConverterServer(s grpc.ServiceRegistrar, srv ConverterServer)

Types

type ConvertReply

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

The response message containing the name parsed

func (*ConvertReply) Descriptor deprecated

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

Deprecated: Use ConvertReply.ProtoReflect.Descriptor instead.

func (*ConvertReply) GetMessage

func (x *ConvertReply) GetMessage() string

func (*ConvertReply) ProtoMessage

func (*ConvertReply) ProtoMessage()

func (*ConvertReply) ProtoReflect

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

func (*ConvertReply) Reset

func (x *ConvertReply) Reset()

func (*ConvertReply) String

func (x *ConvertReply) String() string

type ConvertRequest

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

The request message containing the name.

func (*ConvertRequest) Descriptor deprecated

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

Deprecated: Use ConvertRequest.ProtoReflect.Descriptor instead.

func (*ConvertRequest) GetName

func (x *ConvertRequest) GetName() string

func (*ConvertRequest) ProtoMessage

func (*ConvertRequest) ProtoMessage()

func (*ConvertRequest) ProtoReflect

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

func (*ConvertRequest) Reset

func (x *ConvertRequest) Reset()

func (*ConvertRequest) String

func (x *ConvertRequest) String() string

type ConverterClient

type ConverterClient interface {
	// Sends a Converter request
	HumanName(ctx context.Context, in *ConvertRequest, opts ...grpc.CallOption) (*ConvertReply, error)
}

ConverterClient is the client API for Converter 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 NewConverterClient

func NewConverterClient(cc grpc.ClientConnInterface) ConverterClient

type ConverterServer

type ConverterServer interface {
	// Sends a Converter request
	HumanName(context.Context, *ConvertRequest) (*ConvertReply, error)
	// contains filtered or unexported methods
}

ConverterServer is the server API for Converter service. All implementations must embed UnimplementedConverterServer for forward compatibility

type UnimplementedConverterServer

type UnimplementedConverterServer struct {
}

UnimplementedConverterServer must be embedded to have forward compatible implementations.

func (UnimplementedConverterServer) HumanName

type UnsafeConverterServer

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

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

Jump to

Keyboard shortcuts

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