Documentation
¶
Overview ¶
Package identity 定义 Pinax durable vault object 的稳定身份合同。
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrIdempotencyKeyRequired = errors.New("identity_idempotency_key_required")
Functions ¶
func LegacyNoteIDFromPath ¶
LegacyNoteIDFromPath 仅用于读取和迁移尚未拥有 canonical UUID 的旧笔记。 新对象创建、复制、移动和重命名不得调用此函数。
func UnixMillis ¶
Types ¶
type Allocator ¶
type Allocator struct {
// contains filtered or unexported fields
}
func NewAllocator ¶
func NewAllocator() *Allocator
type ObjectID ¶
type ObjectID string
func MustParseObjectID ¶
func NewObjectID ¶
func ParseObjectID ¶
type ObjectKind ¶
type ObjectKind string
const ( KindVault ObjectKind = "vault" KindNote ObjectKind = "note" KindAsset ObjectKind = "asset" KindProject ObjectKind = "project" KindSubproject ObjectKind = "subproject" KindFolder ObjectKind = "folder" KindView ObjectKind = "view" KindTemplate ObjectKind = "template" KindTask ObjectKind = "task" KindFile ObjectKind = "file" )
func (ObjectKind) Valid ¶
func (kind ObjectKind) Valid() bool
Click to show internal directories.
Click to hide internal directories.