go_grpc

package
v0.0.0-...-e858f28 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_gerador_id_proto protoreflect.FileDescriptor
View Source
var GeradorID_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "geradorid.GeradorID",
	HandlerType: (*GeradorIDServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GerarId",
			Handler:    _GeradorID_GerarId_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "gerador_id.proto",
}

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

Functions

func RegisterGeradorIDServer

func RegisterGeradorIDServer(s grpc.ServiceRegistrar, srv GeradorIDServer)

Types

type GeradorIDClient

type GeradorIDClient interface {
	GerarId(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*IdReply, error)
}

GeradorIDClient is the client API for GeradorID 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 NewGeradorIDClient

func NewGeradorIDClient(cc grpc.ClientConnInterface) GeradorIDClient

type GeradorIDServer

type GeradorIDServer interface {
	GerarId(context.Context, *emptypb.Empty) (*IdReply, error)
	// contains filtered or unexported methods
}

GeradorIDServer is the server API for GeradorID service. All implementations must embed UnimplementedGeradorIDServer for forward compatibility

type IdReply

type IdReply struct {
	GoId int32 `protobuf:"varint,1,opt,name=goId,proto3" json:"goId,omitempty"`
	// contains filtered or unexported fields
}

func (*IdReply) Descriptor deprecated

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

Deprecated: Use IdReply.ProtoReflect.Descriptor instead.

func (*IdReply) GetGoId

func (x *IdReply) GetGoId() int32

func (*IdReply) ProtoMessage

func (*IdReply) ProtoMessage()

func (*IdReply) ProtoReflect

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

func (*IdReply) Reset

func (x *IdReply) Reset()

func (*IdReply) String

func (x *IdReply) String() string

type UnimplementedGeradorIDServer

type UnimplementedGeradorIDServer struct {
}

UnimplementedGeradorIDServer must be embedded to have forward compatible implementations.

func (UnimplementedGeradorIDServer) GerarId

type UnsafeGeradorIDServer

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

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

Directories

Path Synopsis
google

Jump to

Keyboard shortcuts

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