package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Jan 17, 2026
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Secret基础设施密钥管理
更新日志
v0.4.2
v0.4.7
接入手册
1. 代码中使用
由于当前版本中,密钥信息维护在nacos里,请确保应用已经对接过nacos
// 程序启动时
import (
"github.com/SigmaGavin/slardar/secret"
)
// 这里的key请找DBA进行分配,申请流程参见 https://horizonrobotics.feishu.cn/wiki/wikcnmasLIzcnLUDttV9Tt8DqEc#Fug8dU00Mo4u2IxqbvwcEd2rnbb
secret.Init()
mysqlAddrs := secret.GetString("infra.config.mysql.AAI.uni_api")
Documentation
¶
Init retrieve database information from secret store
Source Files
¶
Click to show internal directories.
Click to hide internal directories.