MCPcopy Create free account
hub / github.com/0xUnixIO/pulse / Build

Function Build

internal/proxycfg/dispatch.go:9–11  ·  view source on GitHub ↗

Build 生成 xray 配置 JSON。

(nodeInbounds []inbounds.Inbound, userAccesses []users.UserInbound, userMap map[string]users.User, opts BuildOptions)

Source from the content-addressed store, hash-verified

7
8// Build 生成 xray 配置 JSON。
9func Build(nodeInbounds []inbounds.Inbound, userAccesses []users.UserInbound, userMap map[string]users.User, opts BuildOptions) (string, error) {
10 return BuildXrayConfig(nodeInbounds, userAccesses, userMap, opts)
11}
12
13// BuildIdleFor 返回 xray 空闲配置字符串。
14func BuildIdleFor() string {

Callers 1

ApplyNodeUsersFunction · 0.92

Calls 1

BuildXrayConfigFunction · 0.85

Tested by

no test coverage detected