initialization

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfigBuildWithPath

func NewConfigBuildWithPath(path string, modPath string) *initConfigBuilder

func NewConfigBuilder

func NewConfigBuilder(env string, module string) *initConfigBuilder

NewConfigBuilder 构造文件 env 环境和 metric 打点必填 用来初始化必要信息 构造函数 加载必要的应用基础内容和日志配置 module 参数用来区分不同的模块对应不同的配置, module配置放在config目录下

例如: 一个模块为test-module
则: 启动命令为 app --module=test-module --config=prod
则: 该模块的配置文件路径为 config/test-module/config-test.toml

func NewConfigBuilderWithIP

func NewConfigBuilderWithIP(env string, module string, ip string) *initConfigBuilder

Types

This section is empty.

Jump to

Keyboard shortcuts

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