identity

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package identity 提供 FlowLink 共享标识生成能力。

Index

Constants

View Source
const DefaultService = "default"

DefaultService 是历史 workflow 未声明业务服务时使用的稳定服务标识。

Variables

This section is empty.

Functions

func NewID

func NewID(prefix string) string

NewID 生成带前缀的短随机 ID;随机源失败时退化为时间戳。

func NormalizeService added in v0.2.0

func NormalizeService(service string) string

NormalizeService 规范化业务服务标识,并将历史空值映射到默认服务。

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL