config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadBootstrap

func LoadBootstrap(configPath string, serviceName string, useEnvPrefix bool) (*conf.Bootstrap, kconfig.Config, error)

LoadBootstrap 加载服务启动配置,并返回可持续 watch 的 Kratos 配置实例。 useEnvPrefix 为 true 时根据 serviceName 推导环境变量前缀(如 iam.service → IAM_), 仅读取带前缀的环境变量覆盖配置;为 false 时读取所有无前缀的环境变量。

Types

This section is empty.

Jump to

Keyboard shortcuts

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