同步代码
This commit is contained in:
1 parent
2735cc3009
commit
788f01674a
37 files changed
+2211
-1
No files matched your search
@@ -0,0 +1,15 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"github.com/aceld/zinx/ziface"
|
||||
"github.com/aceld/zinx/znet"
|
||||
)
|
||||
|
||||
// CloseApi 关闭连接API
|
||||
type CloseApi struct {
|
||||
znet.BaseRouter
|
||||
}
|
||||
|
||||
func (*CloseApi) Handle(request ziface.IRequest) {
|
||||
request.GetConnection().Stop()
|
||||
}
|
||||
Reference in new issue
Block a user