Versions in this module Expand all Collapse all v1 v1.0.2 Aug 23, 2023 v1.0.1 Aug 22, 2023 v1.0.0 Jul 31, 2022 Changes in this version + var File_api_protobuf_goflake_proto protoreflect.FileDescriptor + var FlakeService_ServiceDesc = grpc.ServiceDesc + func RegisterFlakeServiceServer(s grpc.ServiceRegistrar, srv FlakeServiceServer) + type DecomposeRequest struct + Uuid uint64 + func (*DecomposeRequest) Descriptor() ([]byte, []int) + func (*DecomposeRequest) ProtoMessage() + func (x *DecomposeRequest) GetUuid() uint64 + func (x *DecomposeRequest) ProtoReflect() protoreflect.Message + func (x *DecomposeRequest) Reset() + func (x *DecomposeRequest) String() string + type DecomposeResponse struct + DatacenterId string + MachineId string + Msb bool + Sequence string + Timestamp string + Uuid string + func (*DecomposeResponse) Descriptor() ([]byte, []int) + func (*DecomposeResponse) ProtoMessage() + func (x *DecomposeResponse) GetDatacenterId() string + func (x *DecomposeResponse) GetMachineId() string + func (x *DecomposeResponse) GetMsb() bool + func (x *DecomposeResponse) GetSequence() string + func (x *DecomposeResponse) GetTimestamp() string + func (x *DecomposeResponse) GetUuid() string + func (x *DecomposeResponse) ProtoReflect() protoreflect.Message + func (x *DecomposeResponse) Reset() + func (x *DecomposeResponse) String() string + type FlakeServiceClient interface + Decompose func(ctx context.Context, in *DecomposeRequest, opts ...grpc.CallOption) (*DecomposeResponse, error) + GetUUID func(ctx context.Context, in *GetUUIDRequest, opts ...grpc.CallOption) (*GetUUIDResponse, error) + func NewFlakeServiceClient(cc grpc.ClientConnInterface) FlakeServiceClient + type FlakeServiceServer interface + Decompose func(context.Context, *DecomposeRequest) (*DecomposeResponse, error) + GetUUID func(context.Context, *GetUUIDRequest) (*GetUUIDResponse, error) + type GetUUIDRequest struct + func (*GetUUIDRequest) Descriptor() ([]byte, []int) + func (*GetUUIDRequest) ProtoMessage() + func (x *GetUUIDRequest) ProtoReflect() protoreflect.Message + func (x *GetUUIDRequest) Reset() + func (x *GetUUIDRequest) String() string + type GetUUIDResponse struct + Uuid uint64 + func (*GetUUIDResponse) Descriptor() ([]byte, []int) + func (*GetUUIDResponse) ProtoMessage() + func (x *GetUUIDResponse) GetUuid() uint64 + func (x *GetUUIDResponse) ProtoReflect() protoreflect.Message + func (x *GetUUIDResponse) Reset() + func (x *GetUUIDResponse) String() string + type UnimplementedFlakeServiceServer struct + func (UnimplementedFlakeServiceServer) Decompose(context.Context, *DecomposeRequest) (*DecomposeResponse, error) + func (UnimplementedFlakeServiceServer) GetUUID(context.Context, *GetUUIDRequest) (*GetUUIDResponse, error) + type UnsafeFlakeServiceServer interface