conf

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Conf = Config{}

Conf 全局配置结构体

Functions

func LoadConfig

func LoadConfig(Path string)

LoadConfig 加载本地配置

Types

type Config

type Config struct {
	Log      map[string]any // 不用定制
	BI       map[string]any // 不用定制
	RpcLog   bool
	Module   map[string][]*ModuleSettings
	Nats     Nats
	Settings map[string]any
}

Config 配置结构体

type ModuleSettings

type ModuleSettings struct {
	ID         string `json:"ID"` // 节点id(指@符号后面的值)
	Host       string // 没啥用
	ProcessEnv string
	Settings   map[string]any
}

ModuleSettings 模块配置

type Nats

type Nats struct {
	Addr          string
	MaxReconnects int
}

Nats nats配置

Jump to

Keyboard shortcuts

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