MCPcopy Create free account
hub / github.com/PasarGuard/node / Xray

Struct Xray

backend/xray/xray.go:15–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13)
14
15type Xray struct {
16 config *Config
17 cfg *config.Config
18 core *Core
19 handler *api.XrayHandler
20 metricPort int
21 cancelFunc context.CancelFunc
22 mu sync.RWMutex
23}
24
25func New(ctx context.Context, xrayConfig *Config, users []*common.User, apiPort, metricPort int, cfg *config.Config) (*Xray, error) {
26 executableAbsolutePath, err := filepath.Abs(cfg.XrayExecutablePath)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected