Documentation ¶
Index ¶
- Variables
- func RegisterIdServiceServer(s grpc_go.ServiceRegistrar, srv IdServiceServer)
- type IdBatchRequest
- type IdBatchResponse
- type IdInverseRequest
- type IdInverseResponse
- func (*IdInverseResponse) Descriptor() ([]byte, []int)deprecated
- func (x *IdInverseResponse) GetId() string
- func (x *IdInverseResponse) GetSequence() string
- func (x *IdInverseResponse) GetTime() string
- func (x *IdInverseResponse) GetWorkId() string
- func (*IdInverseResponse) ProtoMessage()
- func (x *IdInverseResponse) ProtoReflect() protoreflect.Message
- func (x *IdInverseResponse) Reset()
- func (x *IdInverseResponse) String() string
- type IdRequest
- type IdResponse
- type IdServiceClient
- type IdServiceClientImpl
- type IdServiceServer
- type UnimplementedIdServiceServer
- func (UnimplementedIdServiceServer) Id(context.Context, *IdRequest) (*IdResponse, error)
- func (UnimplementedIdServiceServer) Ids(context.Context, *IdBatchRequest) (*IdBatchResponse, error)
- func (UnimplementedIdServiceServer) Inverse(context.Context, *IdInverseRequest) (*IdInverseResponse, error)
- func (s *UnimplementedIdServiceServer) XXX_GetProxyImpl() protocol.Invoker
- func (s *UnimplementedIdServiceServer) XXX_InterfaceName() string
- func (s *UnimplementedIdServiceServer) XXX_ServiceDesc() *grpc_go.ServiceDesc
- func (s *UnimplementedIdServiceServer) XXX_SetProxyImpl(impl protocol.Invoker)
- type UnsafeIdServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_api_proto protoreflect.FileDescriptor
var IdService_ServiceDesc = grpc_go.ServiceDesc{ ServiceName: "api.IdService", HandlerType: (*IdServiceServer)(nil), Methods: []grpc_go.MethodDesc{ { MethodName: "id", Handler: _IdService_Id_Handler, }, { MethodName: "ids", Handler: _IdService_Ids_Handler, }, { MethodName: "inverse", Handler: _IdService_Inverse_Handler, }, }, Streams: []grpc_go.StreamDesc{}, Metadata: "api.proto", }
IdService_ServiceDesc is the grpc_go.ServiceDesc for IdService service. It's only intended for direct use with grpc_go.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterIdServiceServer ¶
func RegisterIdServiceServer(s grpc_go.ServiceRegistrar, srv IdServiceServer)
Types ¶
type IdBatchRequest ¶
type IdBatchRequest struct { Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` // 生成数量 // contains filtered or unexported fields }
批量生成id
func (*IdBatchRequest) Descriptor
deprecated
func (*IdBatchRequest) Descriptor() ([]byte, []int)
Deprecated: Use IdBatchRequest.ProtoReflect.Descriptor instead.
func (*IdBatchRequest) GetCount ¶
func (x *IdBatchRequest) GetCount() int64
func (*IdBatchRequest) ProtoMessage ¶
func (*IdBatchRequest) ProtoMessage()
func (*IdBatchRequest) ProtoReflect ¶
func (x *IdBatchRequest) ProtoReflect() protoreflect.Message
func (*IdBatchRequest) Reset ¶
func (x *IdBatchRequest) Reset()
func (*IdBatchRequest) String ¶
func (x *IdBatchRequest) String() string
type IdBatchResponse ¶
type IdBatchResponse struct { Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
批量生成ID结果
func (*IdBatchResponse) Descriptor
deprecated
func (*IdBatchResponse) Descriptor() ([]byte, []int)
Deprecated: Use IdBatchResponse.ProtoReflect.Descriptor instead.
func (*IdBatchResponse) GetIds ¶
func (x *IdBatchResponse) GetIds() []string
func (*IdBatchResponse) ProtoMessage ¶
func (*IdBatchResponse) ProtoMessage()
func (*IdBatchResponse) ProtoReflect ¶
func (x *IdBatchResponse) ProtoReflect() protoreflect.Message
func (*IdBatchResponse) Reset ¶
func (x *IdBatchResponse) Reset()
func (*IdBatchResponse) String ¶
func (x *IdBatchResponse) String() string
type IdInverseRequest ¶
type IdInverseRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*IdInverseRequest) Descriptor
deprecated
func (*IdInverseRequest) Descriptor() ([]byte, []int)
Deprecated: Use IdInverseRequest.ProtoReflect.Descriptor instead.
func (*IdInverseRequest) GetId ¶
func (x *IdInverseRequest) GetId() string
func (*IdInverseRequest) ProtoMessage ¶
func (*IdInverseRequest) ProtoMessage()
func (*IdInverseRequest) ProtoReflect ¶
func (x *IdInverseRequest) ProtoReflect() protoreflect.Message
func (*IdInverseRequest) Reset ¶
func (x *IdInverseRequest) Reset()
func (*IdInverseRequest) String ¶
func (x *IdInverseRequest) String() string
type IdInverseResponse ¶
type IdInverseResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Time string `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"` WorkId string `protobuf:"bytes,3,opt,name=workId,proto3" json:"workId,omitempty"` Sequence string `protobuf:"bytes,4,opt,name=sequence,proto3" json:"sequence,omitempty"` // contains filtered or unexported fields }
func (*IdInverseResponse) Descriptor
deprecated
func (*IdInverseResponse) Descriptor() ([]byte, []int)
Deprecated: Use IdInverseResponse.ProtoReflect.Descriptor instead.
func (*IdInverseResponse) GetId ¶
func (x *IdInverseResponse) GetId() string
func (*IdInverseResponse) GetSequence ¶
func (x *IdInverseResponse) GetSequence() string
func (*IdInverseResponse) GetTime ¶
func (x *IdInverseResponse) GetTime() string
func (*IdInverseResponse) GetWorkId ¶
func (x *IdInverseResponse) GetWorkId() string
func (*IdInverseResponse) ProtoMessage ¶
func (*IdInverseResponse) ProtoMessage()
func (*IdInverseResponse) ProtoReflect ¶
func (x *IdInverseResponse) ProtoReflect() protoreflect.Message
func (*IdInverseResponse) Reset ¶
func (x *IdInverseResponse) Reset()
func (*IdInverseResponse) String ¶
func (x *IdInverseResponse) String() string
type IdRequest ¶
type IdRequest struct {
// contains filtered or unexported fields
}
Id生成
func (*IdRequest) Descriptor
deprecated
func (*IdRequest) ProtoMessage ¶
func (*IdRequest) ProtoMessage()
func (*IdRequest) ProtoReflect ¶
func (x *IdRequest) ProtoReflect() protoreflect.Message
type IdResponse ¶
type IdResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
Id生成结果
func (*IdResponse) Descriptor
deprecated
func (*IdResponse) Descriptor() ([]byte, []int)
Deprecated: Use IdResponse.ProtoReflect.Descriptor instead.
func (*IdResponse) GetId ¶
func (x *IdResponse) GetId() string
func (*IdResponse) ProtoMessage ¶
func (*IdResponse) ProtoMessage()
func (*IdResponse) ProtoReflect ¶
func (x *IdResponse) ProtoReflect() protoreflect.Message
func (*IdResponse) Reset ¶
func (x *IdResponse) Reset()
func (*IdResponse) String ¶
func (x *IdResponse) String() string
type IdServiceClient ¶
type IdServiceClient interface { // 请求id Id(ctx context.Context, in *IdRequest, opts ...grpc_go.CallOption) (*IdResponse, common.ErrorWithAttachment) // 批量生成id Ids(ctx context.Context, in *IdBatchRequest, opts ...grpc_go.CallOption) (*IdBatchResponse, common.ErrorWithAttachment) // id 逆解析 Inverse(ctx context.Context, in *IdInverseRequest, opts ...grpc_go.CallOption) (*IdInverseResponse, common.ErrorWithAttachment) }
IdServiceClient is the client API for IdService 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 NewIdServiceClient ¶
func NewIdServiceClient(cc *triple.TripleConn) IdServiceClient
type IdServiceClientImpl ¶
type IdServiceClientImpl struct { Id func(ctx context.Context, in *IdRequest) (*IdResponse, error) Ids func(ctx context.Context, in *IdBatchRequest) (*IdBatchResponse, error) Inverse func(ctx context.Context, in *IdInverseRequest) (*IdInverseResponse, error) }
func (*IdServiceClientImpl) GetDubboStub ¶
func (c *IdServiceClientImpl) GetDubboStub(cc *triple.TripleConn) IdServiceClient
func (*IdServiceClientImpl) XXX_InterfaceName ¶
func (c *IdServiceClientImpl) XXX_InterfaceName() string
type IdServiceServer ¶
type IdServiceServer interface { // 请求id Id(context.Context, *IdRequest) (*IdResponse, error) // 批量生成id Ids(context.Context, *IdBatchRequest) (*IdBatchResponse, error) // id 逆解析 Inverse(context.Context, *IdInverseRequest) (*IdInverseResponse, error) // contains filtered or unexported methods }
IdServiceServer is the server API for IdService service. All implementations must embed UnimplementedIdServiceServer for forward compatibility
type UnimplementedIdServiceServer ¶
type UnimplementedIdServiceServer struct {
// contains filtered or unexported fields
}
UnimplementedIdServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedIdServiceServer) Id ¶
func (UnimplementedIdServiceServer) Id(context.Context, *IdRequest) (*IdResponse, error)
func (UnimplementedIdServiceServer) Ids ¶
func (UnimplementedIdServiceServer) Ids(context.Context, *IdBatchRequest) (*IdBatchResponse, error)
func (UnimplementedIdServiceServer) Inverse ¶
func (UnimplementedIdServiceServer) Inverse(context.Context, *IdInverseRequest) (*IdInverseResponse, error)
func (*UnimplementedIdServiceServer) XXX_GetProxyImpl ¶
func (s *UnimplementedIdServiceServer) XXX_GetProxyImpl() protocol.Invoker
func (*UnimplementedIdServiceServer) XXX_InterfaceName ¶
func (s *UnimplementedIdServiceServer) XXX_InterfaceName() string
func (*UnimplementedIdServiceServer) XXX_ServiceDesc ¶
func (s *UnimplementedIdServiceServer) XXX_ServiceDesc() *grpc_go.ServiceDesc
func (*UnimplementedIdServiceServer) XXX_SetProxyImpl ¶
func (s *UnimplementedIdServiceServer) XXX_SetProxyImpl(impl protocol.Invoker)
type UnsafeIdServiceServer ¶
type UnsafeIdServiceServer interface {
// contains filtered or unexported methods
}
UnsafeIdServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to IdServiceServer will result in compilation errors.