Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_gerador_id_proto protoreflect.FileDescriptor
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) ProtoMessage ¶
func (*IdReply) ProtoMessage()
func (*IdReply) ProtoReflect ¶
func (x *IdReply) ProtoReflect() protoreflect.Message
type UnimplementedGeradorIDServer ¶
type UnimplementedGeradorIDServer struct { }
UnimplementedGeradorIDServer must be embedded to have forward compatible implementations.
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.