Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_api_proto protoreflect.FileDescriptor
var Generator_ServiceDesc = grpc.ServiceDesc{ ServiceName: "dtalk.generator.Generator", HandlerType: (*GeneratorServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetID", Handler: _Generator_GetID_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api.proto", }
Generator_ServiceDesc is the grpc.ServiceDesc for Generator service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterGeneratorServer ¶
func RegisterGeneratorServer(s grpc.ServiceRegistrar, srv GeneratorServer)
Types ¶
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type GeneratorClient ¶
type GeneratorClient interface {
GetID(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*GetIDReply, error)
}
GeneratorClient is the client API for Generator 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 NewGeneratorClient ¶
func NewGeneratorClient(cc grpc.ClientConnInterface) GeneratorClient
type GeneratorServer ¶
type GeneratorServer interface { GetID(context.Context, *Empty) (*GetIDReply, error) // contains filtered or unexported methods }
GeneratorServer is the server API for Generator service. All implementations must embed UnimplementedGeneratorServer for forward compatibility
type GetIDReply ¶
type GetIDReply struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetIDReply) Descriptor
deprecated
func (*GetIDReply) Descriptor() ([]byte, []int)
Deprecated: Use GetIDReply.ProtoReflect.Descriptor instead.
func (*GetIDReply) GetId ¶
func (x *GetIDReply) GetId() int64
func (*GetIDReply) ProtoMessage ¶
func (*GetIDReply) ProtoMessage()
func (*GetIDReply) ProtoReflect ¶
func (x *GetIDReply) ProtoReflect() protoreflect.Message
func (*GetIDReply) Reset ¶
func (x *GetIDReply) Reset()
func (*GetIDReply) String ¶
func (x *GetIDReply) String() string
type UnimplementedGeneratorServer ¶
type UnimplementedGeneratorServer struct { }
UnimplementedGeneratorServer must be embedded to have forward compatible implementations.
func (UnimplementedGeneratorServer) GetID ¶
func (UnimplementedGeneratorServer) GetID(context.Context, *Empty) (*GetIDReply, error)
type UnsafeGeneratorServer ¶
type UnsafeGeneratorServer interface {
// contains filtered or unexported methods
}
UnsafeGeneratorServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GeneratorServer will result in compilation errors.