| 13 | ) |
| 14 | |
| 15 | type 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 | |
| 25 | func New(ctx context.Context, xrayConfig *Config, users []*common.User, apiPort, metricPort int, cfg *config.Config) (*Xray, error) { |
| 26 | executableAbsolutePath, err := filepath.Abs(cfg.XrayExecutablePath) |
nothing calls this directly
no outgoing calls
no test coverage detected