crossfw / xray-api-documents Goto Github PK
View Code? Open in Web Editor NEWXray API documents
Xray API documents
[root@96 gofile]# go build structures.go
structures.go:4:2: no required module provides package github.com/xtls/xray-core/app/log/command: working directory is not part of a module
structures.go:5:2: no required module provides package github.com/xtls/xray-core/app/proxyman/command: working directory is not part of a module
structures.go:6:2: no required module provides package github.com/xtls/xray-core/app/router/command: working directory is not part of a module
structures.go:7:2: no required module provides package github.com/xtls/xray-core/app/stats/command: working directory is not part of a module
structures.go:8:2: no required module provides package google.golang.org/grpc: working directory is not part of a module
对于go语言,我不懂,今天刚安装成功,用它编译您的代码出现这个问题。我知道可能是因为包的原因。但我不知道是不是要把XTLS等需要的包下载下来或者放到哪里,很抱歉问了这么个小白的问题,希望得到您的解答,谢谢!
照着alterInbound的例子写的,但总提示
"rpc error: code = Unknown desc = app/proxyman/command: not an outbound operation"
代码:
func AlterOutBound(client command.HandlerServiceClient, user *models.UserInfo) error {
_, err := client.AlterOutbound(context.Background(), &command.AlterOutboundRequest{
Tag: user.InTag,
Operation: serial.ToTypedMessage(&command.AddUserOperation{
User: &protocol.User{
Level: user.Level,
Email: user.Email,
Account: serial.ToTypedMessage(&socks.Account{
Username: user.Username,
Password: user.Password,
}),
},
}),
})
return err
}
是不是可以使用明文套cf做api控制?
@crossfw
我先修改xray服务器的配置config.json中log的属性error为none,
自己写了个客户端,调用restartLogger_test.go中的RestartLogger函数,xray服务器日志输出:app/log: Logger closing,但是查看服务器的日志文件error.log仍然在输出日志. 所以 ,感觉grpc远程调用RestartLogger无效。
求教,先谢谢。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.