id

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager 管理探针的唯一标识

func NewManager

func NewManager() *Manager

NewManager 创建 ID 管理器

func (*Manager) Delete

func (m *Manager) Delete() error

Delete 删除 ID 文件

func (*Manager) Exists

func (m *Manager) Exists() bool

Exists 检查 ID 文件是否存在

func (*Manager) GetPath

func (m *Manager) GetPath() string

GetPath 获取 ID 文件路径

func (*Manager) Load

func (m *Manager) Load() (string, error)

Load 加载或生成探针 ID 如果 ID 文件存在,则读取;否则生成新的 UUID 并保存

Jump to

Keyboard shortcuts

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