name

package
v0.0.0-...-c27917d Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NameService_Name_FullMethodName = "/name.NameService/Name"
)

Variables

View Source
var File_name_name_proto protoreflect.FileDescriptor
View Source
var NameService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "name.NameService",
	HandlerType: (*NameServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Name",
			Handler:    _NameService_Name_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "name/name.proto",
}

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

Functions

func RegisterNameServiceServer

func RegisterNameServiceServer(s grpc.ServiceRegistrar, srv NameServiceServer)

Types

type NameResponse

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

NameResponse are what's returned by the gRPC service

func (*NameResponse) Descriptor deprecated

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

Deprecated: Use NameResponse.ProtoReflect.Descriptor instead.

func (*NameResponse) GetName

func (x *NameResponse) GetName() string

func (*NameResponse) ProtoMessage

func (*NameResponse) ProtoMessage()

func (*NameResponse) ProtoReflect

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

func (*NameResponse) Reset

func (x *NameResponse) Reset()

func (*NameResponse) String

func (x *NameResponse) String() string

type NameServiceClient

type NameServiceClient interface {
	Name(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*NameResponse, error)
}

NameServiceClient is the client API for NameService 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 NameServiceServer

type NameServiceServer interface {
	Name(context.Context, *empty.Empty) (*NameResponse, error)
	// contains filtered or unexported methods
}

NameServiceServer is the server API for NameService service. All implementations must embed UnimplementedNameServiceServer for forward compatibility

type UnimplementedNameServiceServer

type UnimplementedNameServiceServer struct {
}

UnimplementedNameServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedNameServiceServer) Name

type UnsafeNameServiceServer

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

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

Jump to

Keyboard shortcuts

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