载入中...
搜索中...
未找到
UuidV7.h 文件参考

UUIDv7 generation kept separate from lightweight identity values. 更多...

#include "common/Identity.h"
#include <chrono>
#include <cstdint>
#include <functional>
#include <optional>
#include <span>

浏览源代码.

类

class  eve::UuidV7Generator
 Injectable UUIDv7 generator. 更多...
 

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 

类型定义

using eve::UuidEntropySource = std::function< bool(std::span< std::uint8_t > bytes)>
 Entropy callback used by UUIDv7 generation.
 
using eve::UuidClock = std::function< std::chrono::system_clock::time_point()>
 Clock callback used by the injectable UUIDv7 generator.
 

函数

std::optional< PersistentId > eve::generateUuidV7 (std::chrono::system_clock::time_point timestamp, const UuidEntropySource &entropy)
 Constructs a UUIDv7 without owning a clock or generator object.
 

详细描述

UUIDv7 generation kept separate from lightweight identity values.

在文件 UuidV7.h 中定义.