We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
package internal import ( "github.com/name5566/leaf/gate" "github.com/name5566/leaf/log" ) var agents = make(map[gate.Agent]struct{}) func init() { skeleton.RegisterChanRPC("NewAgent", rpcNewAgent) skeleton.RegisterChanRPC("CloseAgent", rpcCloseAgent) } // agent 被创建时 func rpcNewAgent(args []interface{}) { a := args[0].(gate.Agent) _ = a log.Debug("new agent") } // agent 被关闭时 func rpcCloseAgent(args []interface{}) { a := args[0].(gate.Agent) _ = a log.Debug("agent quit") }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The text was updated successfully, but these errors were encountered: